Boost the maximum packet size to 131072.

Libpcap 1.6/tcpdump 4.6 will support up to 131072, as the MTU on the
Linux loopback device is 65536 on at least some versions of the kernel,
and that doesn't count the fake Ethernet header, so the maximum packet
size is 65549; they went to the next power of 2 up.

Change-Id: Ibfc66d01ef8ef7387887a75c2b567159bb78ac0f
Reviewed-on: https://code.wireshark.org/review/2655
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-06-25 13:26:39 -07:00
parent fd5b0777bb
commit 8cde7a72d6
1 changed files with 2 additions and 2 deletions

View File

@ -362,10 +362,10 @@ extern "C" {
/*
* Maximum packet size we'll support.
* 65535 is the largest snapshot length that libpcap supports, so we
* 131072 is the largest snapshot length that libpcap supports, so we
* use that.
*/
#define WTAP_MAX_PACKET_SIZE 65535
#define WTAP_MAX_PACKET_SIZE 131072
/*
* "Pseudo-headers" are used to supply to the clients of wiretap