]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Request as much as the packet as we can with buggy BPF filters.
authorRoy Marples <roy@marples.name>
Fri, 20 Jun 2008 15:37:15 +0000 (15:37 +0000)
committerRoy Marples <roy@marples.name>
Fri, 20 Jun 2008 15:37:15 +0000 (15:37 +0000)
lpf.c

diff --git a/lpf.c b/lpf.c
index 646ccbb9ade571784f3b5b303a76872a3b1eff45..e18e6eca10ac580c5205a90171b29441bb7c3512 100644 (file)
--- a/lpf.c
+++ b/lpf.c
@@ -40,7 +40,7 @@
 # define bpf_insn sock_filter
 # define BPF_SKIPTYPE
 # define BPF_ETHCOOK           -ETH_HLEN
-# define BPF_WHOLEPACKET       65535 /* work around buggy LPF filters */
+# define BPF_WHOLEPACKET       0x0fffffff /* work around buggy LPF filters */
 #endif
 
 #include <errno.h>