summaryrefslogtreecommitdiff
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:27 +0000
commit9ade6ec2500161ec794b102ce60b9898720cbd7b (patch)
tree1f0365fd394585018fbe2cc758084d58fc63ab62
parente314763c39d1424f0d1d3f1a2bee28d190b6259c (diff)
downloadwireshark-9ade6ec2500161ec794b102ce60b9898720cbd7b.tar.gz
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> (cherry picked from commit 8cde7a72d6c2b8e5cac87aeec5b1f200185cbe4a) Reviewed-on: https://code.wireshark.org/review/2656
-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