forked from osmocom/wireshark
7cd6906056
This emphasizes that there is no such thing as *the* routine to construct a subset tvbuff; you need to choose one of tvb_new_subset_remaining() (if you want a new tvbuff that contains everything past a certain point in an existing tvbuff), tvb_new_subset_length() (if you want a subset that contains everything past a certain point, for some number of bytes, in an existing tvbuff), and tvb_new_subset_length_caplen() (for all other cases). Many of the calls to tvb_new_subset_length_caplen() should really be calling one of the other routines; that's the next step. (This also makes it easier to find the calls that need fixing.) Change-Id: Ieb3d676d8cda535451c119487d7cd3b559221f2b Reviewed-on: https://code.wireshark.org/review/19597 Reviewed-by: Guy Harris <guy@alum.mit.edu> |
||
---|---|---|
.. | ||
.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 | ||
make-reg.pl | ||
make-taps.pl | ||
taps | ||
template-init.lua | ||
wslua.h | ||
wslua_address.c | ||
wslua_byte_array.c | ||
wslua_capture_info.c | ||
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 | ||
wslua_proto_expert.c | ||
wslua_proto_field.c | ||
wslua_struct.c | ||
wslua_tree.c | ||
wslua_tvb.c | ||
wslua_util.c |