From 2fb864eeba04213dff60b59c7d377facb76b7a2b Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sun, 27 Jan 2013 16:01:02 +0100 Subject: [PATCH] bpf: replace define with actual value Signed-off-by: Daniel Borkmann --- src/bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bpf.c b/src/bpf.c index 24b428bf..39c3400c 100644 --- a/src/bpf.c +++ b/src/bpf.c @@ -785,7 +785,7 @@ try_compile_str: if (!fd) panic("Cannot open any device!\n"); - ret = pcap_compile(fd, &bpfp, rulefile, 1, PCAP_NETMASK_UNKNOWN); + ret = pcap_compile(fd, &bpfp, rulefile, 1, 0xffffffff); if (ret < 0) panic("Cannot compile filter %s: %s\n", rulefile, pcap_geterr(fd)); -- 2.11.4.GIT