wireshark/ui
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
..
cli Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
gtk Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
qt Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
win32 print_stream: free memory on exit. 2017-02-27 13:25:26 +00:00
.editorconfig
CMakeLists.txt Qt: Add interface toolbar support 2017-04-25 06:19:39 +00:00
Makefile.am Qt: Add interface toolbar support 2017-04-25 06:19:39 +00:00
alert_box.c Take the error message generation out of the merge_files routines. 2017-04-20 20:25:59 +00:00
alert_box.h Take the error message generation out of the merge_files routines. 2017-04-20 20:25:59 +00:00
all_files_wildcard.h
capture.c g_assert on device.if_info.name to prevent undefined behaviour. 2017-03-16 06:35:49 +00:00
capture.h
capture_globals.h
capture_ui_utils.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
capture_ui_utils.h
commandline.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
commandline.h Have routines for parsing options that affect dissection. 2016-10-30 22:57:16 +00:00
console.c A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
console.h
decode_as_utils.c Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
decode_as_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
dissect_opts.c Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
dissect_opts.h Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
doxygen.cfg.in
export_object_ui.c Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_object_ui.h Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_pdu_ui_utils.c cf_open() pops up a dialog box on errors; its callers shouldn't do so. 2017-04-20 18:47:34 +00:00
export_pdu_ui_utils.h
failure_message.c Use cfile_write_failure_message() in the randpkt code. 2017-04-20 21:07:35 +00:00
failure_message.h Have separate routines for open-for-reading and open-for-writing errors. 2017-04-20 18:24:20 +00:00
file_dialog.h
filter_files.c Pull the error reporting into {read,save}_filter_list. 2017-04-09 17:57:52 +00:00
filter_files.h Pull the error reporting into {read,save}_filter_list. 2017-04-09 17:57:52 +00:00
firewall_rules.c
firewall_rules.h
help_url.c extcap: set help page for all extcaps. 2016-12-20 08:23:11 +00:00
help_url.h ui: move filesystem code to wsutil/filesystem.c 2016-12-09 15:50:04 +00:00
iface_lists.c Restore interface selection after interface refresh 2017-03-22 05:03:27 +00:00
iface_lists.h
iface_toolbar.c Qt: Add interface toolbar support 2017-04-25 06:19:39 +00:00
iface_toolbar.h Qt: Interface Toolbar improvements 2017-05-02 09:34:01 +00:00
io_graph_item.c io_graph_item: fix false positive array subscript is above array bounds [-Werror=array-bounds] 2017-03-10 02:48:09 +00:00
io_graph_item.h Qt: support selecting the min/max packet from IO Graph 2017-04-05 09:27:32 +00:00
language.c
language.h
last_open_dir.h
main_statusbar.h
mcast_stream.c
mcast_stream.h
packet_list_utils.c Qt: Support "Resolve Names" with multiple custom column fields 2016-08-27 11:15:34 +00:00
packet_list_utils.h
packet_range.c Move UI-only stuff out of libwireshark. 2017-04-24 03:38:21 +00:00
packet_range.h Move UI-only stuff out of libwireshark. 2017-04-24 03:38:21 +00:00
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c Internalize struct preference 2017-01-22 10:43:57 +00:00
preference_utils.h Refactor range preference. 2017-01-07 15:35:18 +00:00
profile.c Clean up some memory leaks in wsutil/filesystem.c 2017-02-19 01:27:14 +00:00
profile.h
progress_dlg.h
proto_hier_stats.c
proto_hier_stats.h
recent.c Qt: Add interface toolbar support 2017-04-25 06:19:39 +00:00
recent.h Qt: Add interface toolbar support 2017-04-25 06:19:39 +00:00
recent_utils.h
rtp_media.c
rtp_media.h
rtp_stream.c
rtp_stream.h SIP/SDP, RTP: Dissectors shows information about ED-137 related states of radio in info column/VoIP call flow 2016-12-18 11:55:03 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
software_update.c Qt+Win32: Make software updates more friendly. 2016-12-20 14:18:14 +00:00
software_update.h Qt+Win32: Make software updates more friendly. 2016-12-20 14:18:14 +00:00
ssl_key_export.c
ssl_key_export.h
tap-iax2-analysis.c
tap-iax2-analysis.h
tap-rlc-graph.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
tap-rlc-graph.h
tap-rtp-analysis.h Save RTP audio to file: RTP Stream Analysis dialog allows save audio for non G.711 codecs and mixed codecs 2016-12-15 05:16:29 +00:00
tap-rtp-common.c [RTP Analysis] Remove check for duplicated MAC (duplicated packet 2017-03-24 13:39:52 +00:00
tap-rtp-common.h
tap-sctp-analysis.c SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sctp-analysis.h SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sequence-analysis.c VoIP Calls/Flow Sequence: Fix of showing nodes from previous call 2016-12-15 05:16:56 +00:00
tap-sequence-analysis.h VoIP Calls/Flow Sequence: Fix of showing nodes from previous call 2016-12-15 05:16:56 +00:00
tap-tcp-stream.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
tap-tcp-stream.h Qt: Add Goodput graph (ACK rate), and minor bug fixes 2017-01-22 14:41:49 +00:00
tap_export_pdu.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
tap_export_pdu.h
text_import.c Check for localtime() failing. 2017-04-17 07:48:56 +00:00
text_import.h Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
text_import_scanner.h
text_import_scanner.l Include config.h at the very beginning of all Flex scanners. 2016-12-02 21:02:10 +00:00
time_shift.c
time_shift.h
traffic_table_ui.c Qt: update endpoint statistics column labels to match GTK ones 2017-03-28 13:43:18 +00:00
traffic_table_ui.h Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
ui_util.h Move the declaration of packet_list_select_last_row() to ui/gtk/packet_list.h. 2016-12-12 21:12:58 +00:00
util.c
util.h
voip_calls.c Call Flow: Fix - Duration of segment of RTP flow is wrong in call flow. 2016-12-18 20:08:03 +00:00
voip_calls.h