aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2019-10-17 17:28:57 +0200
committerAnders Broman <a.broman58@gmail.com>2019-10-18 03:42:20 +0000
commitc869b567df19dff24e4ad9ffef59dd0f7c543241 (patch)
treec150149b5d482fddb08f6edffa4b3d9b387b68b2 /wiretap
parentfd56ad3326e6746082ef3c8d234393f1935ad897 (diff)
Increase maximum USBPcap packet size to 128 MiB
It turned out that 1 MiB is not enough as atleast the URBs sent by Android fastbool tools are greater than 1 MiB (1 MiB payload + USBPcap pseudoheader). Raise the maximum packet size all the way up to 128 MiB. 128 MiB is the upper bound of maximum packet that can be captured by all official USBPcap releases. Bug: 15985 Change-Id: Ibbf41f7efae6e0f841e36d39664394e8a8eae77d Reviewed-on: https://code.wireshark.org/review/34793 Petri-Dish: Tomasz Moń <desowin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
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 d6c5153489..b3053c4c7a 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -413,7 +413,7 @@ extern "C" {
*
* https://www.elektrobit.com/ebhscr
*
- * For WTAP_ENCAP_USBPCAP, the maximum is 1MiB, as per
+ * For WTAP_ENCAP_USBPCAP, the maximum is 128MiB, as per
*
* https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15985
*
@@ -422,7 +422,7 @@ extern "C" {
* files might allocate a buffer much larger than necessary, wasting memory.
*/
#define WTAP_MAX_PACKET_SIZE_STANDARD 262144
-#define WTAP_MAX_PACKET_SIZE_USBPCAP (1024*1024)
+#define WTAP_MAX_PACKET_SIZE_USBPCAP (128*1024*1024)
#define WTAP_MAX_PACKET_SIZE_EBHSCR (8*1024*1024)
#define WTAP_MAX_PACKET_SIZE_DBUS (128*1024*1024)