From 863800b1019cc92d6c20de4a9d5cd02682ad9177 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Fri, 12 Jul 2013 11:28:25 +0200 Subject: bpf_comp: pass NEED_TCPDUMP_LIKE_FILTER through gcc We have to pass NEED_TCPDUMP_LIKE_FILTER define through gcc as it otherwise is not possible to let the pcap compiler invoke through netsniff-ng, but not through astraceroute. Signed-off-by: Daniel Borkmann --- bpf_comp.c | 2 -- netsniff-ng.c | 2 -- netsniff-ng/Makefile | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bpf_comp.c b/bpf_comp.c index 8946621..8298289 100644 --- a/bpf_comp.c +++ b/bpf_comp.c @@ -4,8 +4,6 @@ * Subject to the GPL, version 2. */ -#define NEED_TCPDUMP_LIKE_FILTER - #include #include diff --git a/netsniff-ng.c b/netsniff-ng.c index 8252d42..644a351 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -6,8 +6,6 @@ */ #define _GNU_SOURCE -#define NEED_TCPDUMP_LIKE_FILTER - #include #include #include diff --git a/netsniff-ng/Makefile b/netsniff-ng/Makefile index 683db4f..790c7c4 100644 --- a/netsniff-ng/Makefile +++ b/netsniff-ng/Makefile @@ -75,4 +75,4 @@ endif netsniff-ng-eflags = $(shell pkg-config --cflags libnl-3.0) \ $(shell pkg-config --cflags libnl-genl-3.0) \ - -DHAVE_DISSECTOR_PROTOS + -DHAVE_DISSECTOR_PROTOS -DNEED_TCPDUMP_LIKE_FILTER -- cgit v1.2.3-54-g00ecf