diff options
author | Pantar Ana <ana.pantar@gmail.com> | 2019-01-15 14:38:09 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-01-18 07:50:54 +0000 |
commit | 0e151f3987c80f2ec17e1c1143f36bb47ec4b7cd (patch) | |
tree | 35c11788d4e5545b036b4133bef8e61f17f8b719 /dumpcap.c | |
parent | 10bcb40c5e9e7248d8b63835425e2f3a88bbea96 (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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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, |