]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
proxyarp: Do not limit NDISC snoop packet size to 150
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 28 Nov 2014 20:39:55 +0000 (22:39 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Nov 2014 20:41:26 +0000 (22:41 +0200)
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 <jouni@qca.qualcomm.com>
src/l2_packet/l2_packet_linux.c

index 7217f8610b4fe74b5d1693ae144e571f3d8c7b61..89ff7db5c80ddb00eca533d91218b37c18f021f3 100644 (file)
@@ -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 },
 };