wireshark/caputils
Guy Harris d0865fd619 Allow bigger snapshot lengths for D-Bus captures.
Use WTAP_MAX_PACKET_SIZE_STANDARD, set to 256KB, for everything except
for D-Bus captures.  Use WTAP_MAX_PACKET_SIZE_DBUS, set to 128MB, for
them, because that's the largest possible D-Bus message size.  See

	https://bugs.freedesktop.org/show_bug.cgi?id=100220

for an example of the problems caused by limiting the snapshot length to
256KB for D-Bus.

Have a snapshot length of 0 in a capture_file structure mean "there is
no snapshot length for the file"; we don't need the has_snap field in
that case, a value of 0 mean "no, we don't have a snapshot length".

In dumpcap, start out with a pipe buffer size of 2KB, and grow it as
necessary.  When checking for a too-big packet from a pipe, check
against the appropriate maximum - 128MB for DLT_DBUS, 256KB for
everything else.

Change-Id: Ib2ce7a0cf37b971fbc0318024fd011e18add8b20
Reviewed-on: https://code.wireshark.org/review/21952
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2017-06-05 05:28:26 +00:00
..
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
Makefile.am Remove Makefile.common files 2016-06-30 11:04:17 +00:00
airpcap.h Allow a lot more C99 features 2016-09-06 02:42:27 +00:00
airpcap_loader.c g_malloc -> g_malloc0 where not all struct elements are initialized or 2017-02-22 21:53:36 +00:00
airpcap_loader.h Try to fix: warning C6244: Local declaration of 'airpcap_if_list' hides 2015-07-02 15:28:03 +00:00
capture-pcap-util-int.h Move more capture device handling to the caputils library. 2016-01-07 04:38:39 +00:00
capture-pcap-util-unix.c Put the HAVE_REMOTE hack into wsutil/wspcap.h, and include that file. 2017-05-11 19:58:15 +00:00
capture-pcap-util.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
capture-pcap-util.h Put the HAVE_REMOTE hack into wsutil/wspcap.h, and include that file. 2017-05-11 19:58:15 +00:00
capture-wpcap.c Include caputils/capture-wpcap.h whether HAVE_LIBPCAP is defined or not. 2017-05-12 08:48:48 +00:00
capture-wpcap.h Move npf_sys_is_running() from wsutil to caputils. 2016-06-03 21:24:47 +00:00
capture_ifinfo.h Fix retrieval of data link type supported by remote interfaces with authentication 2015-07-22 07:10:10 +00:00
capture_win_ifnames.c Remove unnecessary includes. 2016-01-06 00:14:32 +00:00
capture_win_ifnames.h
capture_wpcap_packet.c Put the HAVE_REMOTE hack into wsutil/wspcap.h, and include that file. 2017-05-11 19:58:15 +00:00
capture_wpcap_packet.h
doxygen.cfg.in
iface_monitor.c A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
iface_monitor.h A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
ws80211_utils.c Fix the signature of the stub version of ws80211_set_freq(). 2016-09-08 18:38:41 +00:00
ws80211_utils.h dumpcap: change types. 2016-09-08 18:31:14 +00:00