summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schiller <mschiller@tdt.de>2017-02-20 06:27:41 +0100
committerJo-Philipp Wich <jo@mein.io>2017-03-01 20:37:37 +0100
commit87e021e6e3eecb8dcaf1e38d5f63264629696743 (patch)
treeae9bfccf2784d3179f7ad36db6d01d04e5bd50ee
parent2e67e8c90f5041f730cdf81669e8b690a4b51c9f (diff)
downloadmtk-20170518-87e021e6e3eecb8dcaf1e38d5f63264629696743.zip
mtk-20170518-87e021e6e3eecb8dcaf1e38d5f63264629696743.tar.gz
mtk-20170518-87e021e6e3eecb8dcaf1e38d5f63264629696743.tar.bz2
libpcap: add optional netfilter support
This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller <mschiller@tdt.de>
-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 05f45f4..1159927 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 d3360d2..4d0ce40 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 \