summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-12 11:28:25 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-12 11:28:25 +0200
commit863800b1019cc92d6c20de4a9d5cd02682ad9177 (patch)
tree87fda1a33072cd5299382870cb751662ba23f307
parentd026932f69d66778f518196c79886fecafc95621 (diff)
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 <dborkman@redhat.com>
-rw-r--r--bpf_comp.c2
-rw-r--r--netsniff-ng.c2
-rw-r--r--netsniff-ng/Makefile2
3 files changed, 1 insertions, 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 <pcap.h>
#include <linux/filter.h>
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 <stdio.h>
#include <stdlib.h>
#include <signal.h>
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