From: Martin Schiller Date: Mon, 20 Feb 2017 05:27:41 +0000 (+0100) Subject: libpcap: add optional netfilter support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=87e021e6e3eecb8dcaf1e38d5f63264629696743;p=openwrt%2Fstaging%2Frmilecki.git libpcap: add optional netfilter support This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller --- diff --git a/package/libs/libpcap/Config.in b/package/libs/libpcap/Config.in index 05f45f44159..11599273e79 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 d3360d2dee1..4d0ce409934 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 \