]> The Tcpdump Group git mirrors - tcpdump/commit
Don't treat 65535 as the maximum snapshot length.
authorGuy Harris <[email protected]>
Wed, 25 Jun 2014 20:18:18 +0000 (13:18 -0700)
committerGuy Harris <[email protected]>
Wed, 25 Jun 2014 20:18:18 +0000 (13:18 -0700)
commitd033c1bc381c76d13e4aface97a4f4ec8c3beca2
treea062645b58516494669146b388625ac9f7e1577b
parentf2b690e8b5f2cb9306ef77374346260ea0a7839c
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.

This (plus the corresponding change to libpcap) should fix GitHub issue
netdissect.h