wireshark/epan
Guy Harris 2d41b15495 Add a "failed" return for tap packet routines.
This allows taps that can fail to report an error and fail; a failed
tap's packet routine won't be called again, so they don't have to keep
track of whether they've failed themselves.

We make the return value from the packet routine an enum.

Don't have a separate type for the per-packet routine for "follow" taps;
they're expected to act like tap packet routines, so just use the type
for tap packet routines.

One tap packet routine returned -1; that's not a valid return value, and
wasn't one before this change (the return value was a boolean), so
presume the intent was "don't redraw".

Another tap routine's early return, without doing any work, returned
TRUE; this is presumably an error (no work done, no need to redraw), so
presumably it should be "don't redraw".

Clean up some white space while we're at it.

Change-Id: Ia7d2b717b2cace4b13c2b886e699aa4d79cc82c8
Reviewed-on: https://code.wireshark.org/review/31283
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-01 05:03:42 +00:00
..
crypt Fix some spelling errors found by Lintian. 2018-12-05 18:58:19 +00:00
dfilter Always set *dfp to NULL on an error return from dfilter_compile(). 2018-12-19 06:04:16 +00:00
dissectors Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
ftypes Fix some spelling errors found by Lintian. 2018-12-05 18:58:19 +00:00
wmem Install development headers on all platforms 2018-11-24 13:48:16 +00:00
wslua Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
.editorconfig
CMakeLists.txt CMake: Don't bundle our libraries at compile time. 2018-12-20 20:34:39 +00:00
addr_and_mask.c
addr_and_mask.h
addr_resolv.c addr_resolv: fix crashes in parse_ether_address_fast 2018-11-23 04:10:04 +00:00
addr_resolv.h addr_resolv: function to convert an eth address into raw bytes 2018-10-15 05:15:57 +00:00
address.h Make AT_VINES a built-in type 2018-08-29 19:36:43 +00:00
address_types.c Make AT_VINES a built-in type 2018-08-29 19:36:43 +00:00
address_types.h
afn.c
afn.h
aftypes.c
aftypes.h
app_mem_usage.c
app_mem_usage.h
arcnet_pids.h
arptypes.h Move the Linux ARPHRD_ types to epan/arptypes.h. 2018-11-13 06:18:22 +00:00
asn1.c
asn1.h IEEE1609dot2: generate automatically dissector from ASN.1 description 2018-10-30 15:33:44 +00:00
ax25_pids.h
bridged_pids.h
capture_dissectors.c Fix the type of the packet buffer argument to a capture dissector. 2018-09-30 21:25:22 +00:00
capture_dissectors.h Fix the type of the packet buffer argument to a capture dissector. 2018-09-30 21:25:22 +00:00
charsets.c
charsets.h
chdlctypes.h
color_filters.c Qt: Add back pathLabel in some dialogs 2018-10-10 04:46:28 +00:00
color_filters.h Qt: Add back pathLabel in some dialogs 2018-10-10 04:46:28 +00:00
column-info.h
column-utils.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
column-utils.h
column.c Sort our column descriptions. 2018-06-27 23:40:05 +00:00
column.h
conv_id.h
conversation.c Re-balance DINDENT/DENDENT macros in conversation.c. 2018-12-01 14:53:42 +00:00
conversation.h Revert "Have find_or_create_conversation() use pinfo->conv_endpoint if present." 2018-08-01 02:55:18 +00:00
conversation_debug.h
conversation_table.c Get rid of a GTK+-only field. 2018-05-16 08:16:15 +00:00
conversation_table.h Get rid of a GTK+-only field. 2018-05-16 08:16:15 +00:00
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 Try to discourage the use of APIs via counting. 2018-09-19 16:07:03 +00:00
disabled_protos.h
dissector_filters.c
dissector_filters.h
dtd.h
dtd_grammar.lemon
dtd_parse.h
dtd_parse.l
dtd_preparse.l
dvb_chartbl.c
dvb_chartbl.h
eap.h
eapol_keydes_types.h
epan.c Add support for RSA decryption using PKCS #11 tokens 2018-12-29 10:40:16 +00:00
epan.h epan: Add argument to epan_init() to disable plugins 2018-09-09 02:27:34 +00:00
epan_dissect.h
etypes.h GeoNetworking: Add ethertype 0x8947 2018-12-13 09:41:23 +00:00
ex-opt.c
ex-opt.h
except.c except: detect exception stack corruption 2018-10-10 04:08:17 +00:00
except.h
exceptions.h
exntest.c exntest: fix no previous prototype for ‘run_tests’ [-Wmissing-prototypes] 2018-09-06 04:13:40 +00:00
expert.c expert: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang 2018-06-18 08:30:59 +00:00
expert.h
export_object.c
export_object.h
exported_pdu.c export_pdu.c: Fix a memory leak 2018-08-14 11:47:29 +00:00
exported_pdu.h
filter_expressions.c
filter_expressions.h
follow.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
follow.h Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
frame_data.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
frame_data.h Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
frame_data_sequence.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
frame_data_sequence.h
funnel.c
funnel.h
garrayfix.h
golay.c
golay.h
guid-utils.c
guid-utils.h
iana_charsets.c
iana_charsets.h
iax2_codec_type.h IAX: Improve decoding of IAX2 codec details 2018-10-27 06:52:37 +00:00
in_cksum.c
in_cksum.h
ip_opts.h
ipproto.c
ipproto.h Fix some spelling errors found by Lintian. 2018-12-05 18:58:19 +00:00
ipv4.h
ipv6.h
lapd_sapi.h
llcsaps.h
maxmind_db.c maxmind_db: force buffer contain an empty string (CID: 1441961). 2018-12-26 00:56:34 +00:00
maxmind_db.h
media_params.c
media_params.h
next_tvb.c
next_tvb.h
nlpid.h
oids.c Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
oids.h
oids_test.c
osi-utils.c Fix incorrect formatting of NSAP area addresses/address prefixes. 2018-05-27 18:56:41 +00:00
osi-utils.h Fix incorrect formatting of NSAP area addresses/address prefixes. 2018-05-27 18:56:41 +00:00
oui.h Add Apple Wireless Direct Link (AWDL) dissector 2018-11-29 22:12:42 +00:00
packet.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
packet.h packet.h: fix wrong parameter doc for register_dissector_table_alias 2018-09-15 10:25:40 +00:00
packet_info.h
params.h
plugin_if.c plugin_if: fix small memory leak in ext_menubar_add_separator 2018-05-05 05:57:25 +00:00
plugin_if.h
ppptypes.h
prefs-int.h
prefs.c prefs: Document the possible hidden interface types 2018-12-25 21:22:54 +00:00
prefs.h Add ability to disable autocomplete suggestions for filter controls. 2018-10-22 04:45:59 +00:00
print.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
print.h
print.ps
print_stream.c
print_stream.h
proto.c proto: make ws_type_to_elastic static. 2018-12-09 03:04:00 +00:00
proto.h Replace JSON-GLib by custom JSON dumper library 2018-11-20 05:03:56 +00:00
proto_data.c
proto_data.h
ps.h
ptvcursor.h
radius_dict.l Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
range.c Use ws_basetostru32(), rather than strtoul(), when parsing ranges. 2018-10-19 20:30:53 +00:00
range.h
reassemble.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
reassemble.h tcp: add support for reassembling out-of-order segments 2018-06-28 06:10:35 +00:00
reassemble_test.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
reedsolomon.c
reedsolomon.h
register-int.h epan: Remove unnecessary all protocols registration callback 2018-08-29 23:22:44 +00:00
register.c register(epan): fix no previous prototype for function 'register_all_protocols/register_all_protocol_handoffs/register_count' [-Wmissing-prototypes] 2018-09-05 04:10:07 +00:00
register.h epan: Remove unnecessary all protocols registration callback 2018-08-29 23:22:44 +00:00
req_resp_hdrs.c HTTP: ignore large Content-Length values 2018-08-13 07:57:21 +00:00
req_resp_hdrs.h
rtd_table.c Get rid of some GTK+-only stuff. 2018-05-12 23:01:14 +00:00
rtd_table.h Get rid of some GTK+-only stuff. 2018-05-12 23:01:14 +00:00
rtp_pt.h
sctpppids.h E1AP: add dissector based on v15.0.0 2018-07-06 13:40:50 +00:00
secrets.c Add support for RSA decryption using PKCS #11 tokens 2018-12-29 10:40:16 +00:00
secrets.h Add new "rsa_keys" UAT for storage of RSA private keys 2018-12-13 05:28:02 +00:00
sequence_analysis.c VOIP: Always use frame number when hashing sequence analysis. 2018-12-15 07:41:03 +00:00
sequence_analysis.h
show_exception.c Try to discourage the use of APIs via counting. 2018-09-19 16:07:03 +00:00
show_exception.h
slow_protocol_subtypes.h
sminmpec.h
srt_table.c Get rid of some GTK+-only stuff. 2018-05-13 19:46:45 +00:00
srt_table.h Get rid of some GTK+-only stuff. 2018-05-13 19:46:45 +00:00
stat_groups.h
stat_tap_ui.c Do not modify optarg with -zfollow,ssl,ascii,0 2018-10-05 13:19:32 +00:00
stat_tap_ui.h Do not modify optarg with -zfollow,ssl,ascii,0 2018-10-05 13:19:32 +00:00
stats_tree.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
stats_tree.h Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
stats_tree_priv.h Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
stream.c
stream.h
strutil.c
strutil.h
t35.c
t35.h
tap-voip.h
tap.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
tap.h Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
tfs.c ISIS: Add Prefix Attribute Flags TLV (rfc7794) 2018-12-19 06:11:50 +00:00
tfs.h ISIS: Add Prefix Attribute Flags TLV (rfc7794) 2018-12-19 06:11:50 +00:00
time_fmt.h
timestamp.c
timestamp.h
timestats.c
timestats.h
to_str-int.h
to_str.c to_str: Fixed incorrect order of checks in bytestring_to_str. 2018-10-30 12:47:19 +00:00
to_str.h
tvbparse.c Try to discourage the use of APIs via counting. 2018-09-19 16:07:03 +00:00
tvbparse.h
tvbtest.c tvb: gracefully handle reading 0 bytes from an empty buffer 2018-09-27 04:32:54 +00:00
tvbuff-int.h
tvbuff.c Add tvb_get_token_len 2018-12-09 07:17:21 +00:00
tvbuff.h Add tvb_get_token_len 2018-12-09 07:17:21 +00:00
tvbuff_base64.c epan: Use g_base64_decode_inplace() 2018-09-03 04:05:13 +00:00
tvbuff_composite.c tvbuff_composite: fix buffer overflow due to wrong offset adjustment 2018-10-12 05:07:08 +00:00
tvbuff_real.c
tvbuff_subset.c tvbuff_subset.c: handle a reported_length set to -1 in tvb_new_subset_length() 2018-09-05 19:54:34 +00:00
tvbuff_zlib.c tvbuff_zlib: reject negative lengths to avoid buffer overrun 2018-05-15 17:16:12 +00:00
uat-int.h
uat.c Separate signed and unsigned decimal UAT fields. 2018-10-20 21:03:51 +00:00
uat.h Separate signed and unsigned decimal UAT fields. 2018-10-20 21:03:51 +00:00
uat_load.l Qt: Add copy from another profile in UAT dialogs 2018-10-05 12:38:32 +00:00
unit_strings.c Bluetooth: ATT: Implement one FTMS/FTMP characteristic: Machine Status 2018-10-06 12:08:01 +00:00
unit_strings.h Bluetooth: ATT: Implement one FTMS/FTMP characteristic: Machine Status 2018-10-06 12:08:01 +00:00
value_string.c Add support for extended 64 bit value to string matching 2018-10-27 05:34:59 +00:00
value_string.h Add support for extended 64 bit value to string matching 2018-10-27 05:34:59 +00:00
x264_prt_id.h
xdlc.c Fix the type of the packet data argument to get_xdlc_control(). 2018-09-30 21:28:18 +00:00
xdlc.h Fix the type of the packet data argument to get_xdlc_control(). 2018-09-30 21:28:18 +00:00