aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorPantar Ana <ana.pantar@gmail.com>2019-01-15 14:38:09 +0100
committerAnders Broman <a.broman58@gmail.com>2019-01-18 07:50:54 +0000
commit0e151f3987c80f2ec17e1c1143f36bb47ec4b7cd (patch)
tree35c11788d4e5545b036b4133bef8e61f17f8b719 /dumpcap.c
parent10bcb40c5e9e7248d8b63835425e2f3a88bbea96 (diff)
ebhscr: increasing ebhscr snaplen
Change-Id: Ie033196c099927912b1e7849299e786dc8416923 Reviewed-on: https://code.wireshark.org/review/31554 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 65252580a9..26f9c08d90 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1980,7 +1980,16 @@ pcap_pipe_open_live(int fd,
pcap_src->cap_pipe_max_pkt_size = WTAP_MAX_PACKET_SIZE_DBUS;
} else
#endif
+ if (pcap_src->linktype == 279) { /* DLT_EBHSCR */
+ /*
+ * The maximum EBHSCR message size is 8MB, so allow packets up
+ * to that size.
+ */
+ pcap_src->cap_pipe_max_pkt_size = WTAP_MAX_PACKET_SIZE_EBHSCR;
+ }
+ else {
pcap_src->cap_pipe_max_pkt_size = WTAP_MAX_PACKET_SIZE_STANDARD;
+ }
if (hdr->version_major < 2) {
g_snprintf(errmsg, (gulong)errmsgl,