forked from osmocom/wireshark
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:
parent
fd5b0777bb
commit
8cde7a72d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue