From: Jouni Malinen Date: Fri, 28 Nov 2014 20:39:55 +0000 (+0200) Subject: proxyarp: Do not limit NDISC snoop packet size to 150 X-Git-Tag: hostap_2_4~995 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c02cfdb3abf4f12b1a351c65d67514cfaea6cfa;p=thirdparty%2Fhostap.git proxyarp: Do not limit NDISC snoop packet size to 150 The RA, NS, and NA packets may be longer, so do not arbitrarily limit the packet socket capture size to 150 bytes in the socket filter. Signed-off-by: Jouni Malinen --- diff --git a/src/l2_packet/l2_packet_linux.c b/src/l2_packet/l2_packet_linux.c index 7217f8610..89ff7db5c 100644 --- a/src/l2_packet/l2_packet_linux.c +++ b/src/l2_packet/l2_packet_linux.c @@ -56,7 +56,7 @@ static const struct sock_fprog dhcp_sock_filter = { }; -/* Generated by 'sudo tcpdump -dd -s 150 multicast and ip6[6]=58' */ +/* Generated by 'sudo tcpdump -dd -s 1500 multicast and ip6[6]=58' */ static struct sock_filter ndisc_sock_filter_insns[] = { { 0x30, 0, 0, 0x00000000 }, { 0x45, 0, 5, 0x00000001 }, @@ -64,7 +64,7 @@ static struct sock_filter ndisc_sock_filter_insns[] = { { 0x15, 0, 3, 0x000086dd }, { 0x30, 0, 0, 0x00000014 }, { 0x15, 0, 1, 0x0000003a }, - { 0x6, 0, 0, 0x00000096 }, + { 0x6, 0, 0, 0x000005dc }, { 0x6, 0, 0, 0x00000000 }, };