aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-25 13:26:39 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-25 20:27:11 +0000
commit8cde7a72d6c2b8e5cac87aeec5b1f200185cbe4a (patch)
tree4a15306bcfdab030b8d239b37c1a632339fe2812 /wiretap
parentfd5b0777bb18bebcc549b7575c54473dd6473366 (diff)
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>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/wtap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index d0910d930d..11f51466b1 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -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