wireshark/epan
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
..
compress
crypt
dfilter dfilter: fvt_cache use g_hash_table_new_full() API to prevent some memory leaks 2017-06-01 16:39:00 +00:00
dissectors Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
ftypes
wmem
wslua Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
.editorconfig
CMakeLists.txt
Makefile.am List all plugin files for static build 2017-05-27 17:06:02 +00:00
addr_and_mask.c
addr_and_mask.h
addr_resolv.c
addr_resolv.h
address.h
address_types.c
address_types.h
afn.c
afn.h
aftypes.c
aftypes.h
app_mem_usage.c
app_mem_usage.h
arcnet_pids.h
arptypes.h
asm_utils.c
asm_utils.h
asm_utils_win32_x86.asm
asn1.c
asn1.h
ax25_pids.h
bridged_pids.h
capture_dissectors.c
capture_dissectors.h
charsets.c
charsets.h
chdlctypes.h
circuit.c
circuit.h
color_filters.c
color_filters.h
column-info.h
column-utils.c
column-utils.h
column.c
column.h
conv_id.h
conversation.c
conversation.h
conversation_debug.h
conversation_table.c
conversation_table.h
crc6-tvb.c
crc6-tvb.h
crc8-tvb.c
crc8-tvb.h
crc10-tvb.c
crc10-tvb.h
crc16-tvb.c
crc16-tvb.h
crc32-tvb.c
crc32-tvb.h
decode_as.c
decode_as.h
diam_dict.h
diam_dict.l
disabled_protos.c
disabled_protos.h
dissector_filters.c
dissector_filters.h
doxygen.cfg.in
dtd.h
dtd_grammar.lemon
dtd_parse.h
dtd_parse.l
dtd_preparse.l
dvb_chartbl.c
dvb_chartbl.h
dwarf.c
dwarf.h
eap.h
eapol_keydes_types.h
enterprise-numbers [Automatic update for 2017-06-04] 2017-06-04 08:09:33 +00:00
epan-int.h
epan.c
epan.h
epan_dissect.h
etypes.h
ex-opt.c
ex-opt.h
except.c
except.h
exceptions.h
exntest.c
expert.c
expert.h
export_object.c
export_object.h
exported_pdu.c
exported_pdu.h
filter_expressions.c
filter_expressions.h
follow.c
follow.h
frame_data.c
frame_data.h
frame_data_sequence.c
frame_data_sequence.h
funnel.c
funnel.h
garrayfix.h
geoip_db.c
geoip_db.h
golay.c
golay.h
guid-utils.c
guid-utils.h
iana_charsets.c
iana_charsets.h
iax2_codec_type.h
in_cksum.c
in_cksum.h
ip_opts.h
ipproto.c
ipproto.h
ipv4.c
ipv4.h
ipv6.h
lapd_sapi.h
llcsaps.h
media_params.c
media_params.h
next_tvb.c
next_tvb.h
nlpid.h
oids.c
oids.h
oids_test.c
osi-utils.c
osi-utils.h
oui.c
oui.h
packet.c
packet.h
packet_info.h
params.h
plugin_if.c
plugin_if.h
ppptypes.h
prefs-int.h
prefs.c prefs: Avoid empty elements in string lists. 2017-06-01 11:30:25 +00:00
prefs.h Qt+prefs: Add a dark theme check and default colors. 2017-06-01 08:07:05 +00:00
print.c
print.h
print.ps
print_stream.c
print_stream.h
proto.c Fixup support of BASE_UNIT_STRING for 64 bit based integer fields 2017-05-28 15:15:18 +00:00
proto.h
proto_data.c
proto_data.h
ps.h
ptvcursor.h
radius_dict.l Update a comment. 2017-05-31 08:22:51 +00:00
range.c
range.h Add SUBOBJECT_INITIALIZER and use it. 2017-06-02 08:30:16 +00:00
reassemble.c
reassemble.h
reassemble_test.c
reedsolomon.c
reedsolomon.h
req_resp_hdrs.c
req_resp_hdrs.h
rtd_table.c
rtd_table.h
rtp_pt.h
sctpppids.h
show_exception.c
show_exception.h
slow_protocol_subtypes.h
sminmpec.c [Automatic update for 2017-06-04] 2017-06-04 08:09:33 +00:00
sminmpec.h
srt_table.c
srt_table.h
stat_groups.h
stat_tap_ui.c
stat_tap_ui.h
stats_tree.c
stats_tree.h
stats_tree_priv.h
stream.c
stream.h
strutil.c
strutil.h
t35.c
t35.h
tap-voip.h
tap.c
tap.h
tfs.c
tfs.h
time_fmt.h
timestamp.c
timestamp.h
timestats.c
timestats.h
to_str-int.h
to_str.c
to_str.h
tpg.c
tpg.h
tvbparse.c
tvbparse.h
tvbtest.c
tvbuff-int.h
tvbuff.c
tvbuff.h
tvbuff_base64.c
tvbuff_composite.c
tvbuff_real.c
tvbuff_subset.c
tvbuff_zlib.c
uat-int.h sharkd: export uat records. 2017-05-16 04:27:05 +00:00
uat.c sharkd: export uat records. 2017-05-16 04:27:05 +00:00
uat.h
uat_load.l
unit_strings.c
unit_strings.h
value_string.c
value_string.h
x264_prt_id.h
xdlc.c
xdlc.h