]> The Tcpdump Group git mirrors - libpcap/commit
Don't treat 65535 as the maximum snapshot length.
authorGuy Harris <[email protected]>
Wed, 25 Jun 2014 20:15:51 +0000 (13:15 -0700)
committerGuy Harris <[email protected]>
Wed, 25 Jun 2014 20:15:51 +0000 (13:15 -0700)
commita8cd00e8ae4468a9e64cfa9ee38972b950024bbd
treeaf539ff2c3d69c4151f5872fd773b85561933568
parentc71f77c657dc3e23bb42298843ab5d682b3daad2
Don't treat 65535 as the maximum snapshot length.

Make it 131072, instead; the MTU on the Linux loopback interface, in at
least some versions of the kernel, is 65536, and that doesn't count the
fake Ethernet header, so we need a value bigger than 65536.  We don't
want a value that's *too* large, so that it causes attempts to allocate
huge amounts of memory, however.

Make it a #define while we're at it.
pcap-int.h
pcap-linux.c
pcap.c
sf-pcap.c