wireshark/epan/wslua
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
CMakeLists.txt
Makefile.am
console.lua
dtd_gen.lua
init_wslua.c
init_wslua.h
lrexlib.c
lrexlib.h
lrexlib_algo.h
lrexlib_glib.c
lrexlib_glib_f.c
lua_bitop.c
lua_bitop.h
make-init-lua.pl Lua: Add absolute time base values 2017-03-15 18:44:44 +00:00
make-reg.pl
make-taps.pl
taps
template-init.lua Lua: Merge sep and str tables into base 2017-03-15 17:32:30 +00:00
wslua.h Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
wslua_address.c
wslua_byte_array.c
wslua_capture_info.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
wslua_column.c
wslua_dir.c
wslua_dissector.c
wslua_dumper.c
wslua_field.c
wslua_file.c
wslua_file_common.c
wslua_file_common.h
wslua_file_handler.c
wslua_frame_info.c
wslua_gui.c
wslua_int64.c
wslua_internals.c
wslua_listener.c
wslua_nstime.c
wslua_pinfo.c
wslua_pinfo_common.h
wslua_pref.c
wslua_proto.c Add an API to let a postdissector specify fields whose values it needs. 2017-04-12 04:31:19 +00:00
wslua_proto_expert.c
wslua_proto_field.c Lua: Add absolute time base values 2017-03-15 18:44:44 +00:00
wslua_struct.c
wslua_tree.c New Lua function TreeItem:referenced(ProtoField | Dissector). 2017-05-05 08:38:40 +00:00
wslua_tvb.c
wslua_util.c