Browse Source

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 <jouni@qca.qualcomm.com>
Jouni Malinen 10 years ago
parent
commit
3c02cfdb3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/l2_packet/l2_packet_linux.c

+ 2 - 2
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 },
 };