aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libpcap
diff options
context:
space:
mode:
authorMartin Schiller <mschiller@tdt.de>2017-02-20 06:27:41 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-22 22:52:30 +0100
commitfdfde3eb21dbc55cdaf4fed6b374ce6cfc704e42 (patch)
treecac3bbd8e168ebb91b0104c98b848876df33ba21 /package/libs/libpcap
parent1d49b534f5b74676f30f2ee1ba78d9e02d59f0bc (diff)
downloadupstream-fdfde3eb21dbc55cdaf4fed6b374ce6cfc704e42.tar.gz
upstream-fdfde3eb21dbc55cdaf4fed6b374ce6cfc704e42.tar.bz2
upstream-fdfde3eb21dbc55cdaf4fed6b374ce6cfc704e42.zip
libpcap: add optional netfilter support
This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller <mschiller@tdt.de>
Diffstat (limited to 'package/libs/libpcap')
-rw-r--r--package/libs/libpcap/Config.in4
-rw-r--r--package/libs/libpcap/Makefile7
2 files changed, 9 insertions, 2 deletions
diff --git a/package/libs/libpcap/Config.in b/package/libs/libpcap/Config.in
index 05f45f4415..11599273e7 100644
--- a/package/libs/libpcap/Config.in
+++ b/package/libs/libpcap/Config.in
@@ -10,4 +10,8 @@ config PCAP_HAS_BT
depends on BROKEN
default n
+config PCAP_HAS_NETFILTER
+ bool "Include netfilter support"
+ default n
+
endmenu
diff --git a/package/libs/libpcap/Makefile b/package/libs/libpcap/Makefile
index d3360d2dee..4d0ce40993 100644
--- a/package/libs/libpcap/Makefile
+++ b/package/libs/libpcap/Makefile
@@ -48,9 +48,12 @@ TARGET_CFLAGS += \
CONFIGURE_VARS += \
ac_cv_linux_vers=$(LINUX_VERSION) \
- ac_cv_header_libusb_1_0_libusb_h=no \
- ac_cv_netfilter_can_compile=no
+ ac_cv_header_libusb_1_0_libusb_h=no
+ifeq ($(CONFIG_PCAP_HAS_NETFILTER),)
+CONFIGURE_VARS += \
+ ac_cv_netfilter_can_compile=no
+endif
CONFIGURE_ARGS += \
--enable-shared \