wireshark/epan
Wasim Abu Moch 401469880b packet-erf: added dissector table for "erf.types.type" type field.
1- removed unnecessary include <wiretap/erf.h>
2- used fall through in protocol switch case instead of calling same
function with same params.

fixes/changes after review with Evan Huus, changes ETH/IPv4/IPv6/Infiniband/InfinibandLink
to use dissector table instead of direct function calls.
other protocols should be called in the same way, we'll do it when have
the time.

instead of calling subdissector directly from packet-erf.c code it's
easier to declare this and each time we need to register a new
protocol over erf format we sould easily extend it from the protcol module
instead using "dissector_add_uint()" function.

the change is still backward compatible, if no upper protocol is
registered for the specifc type an old fasion direct function call
is performed.

Change-Id: I3ae1ccfdd49ab8f90667185296cc950dc2184475
Reviewed-on: https://code.wireshark.org/review/3670
Petri-Dish: Evan Huus <eapache@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-08-21 02:20:17 +00:00
..
crypt Guard against buffer overflow when copying group key bytes into 2014-08-11 16:50:36 +00:00
dfilter Use forward slashes in paths to runlex.sh 2014-07-20 13:15:59 +00:00
dissectors packet-erf: added dissector table for "erf.types.type" type field. 2014-08-21 02:20:17 +00:00
ftypes Clean up handling of missing functions. 2014-07-06 21:03:09 +00:00
nghttp2 http2: Update to h2-14 2014-08-03 14:20:43 +00:00
wmem Fix warning: no previous prototype for ... [-Wmissing-prototypes] 2014-08-18 13:13:43 +00:00
wslua Fix warning (turning error) when compiling with -O3 2014-08-13 06:05:48 +00:00
CMakeLists.txt Add a tvbuff version of crc6_compute(). 2014-08-08 20:03:29 +00:00
Makefile.am Moved nghttp2 to epan 2014-07-09 05:31:31 +00:00
Makefile.common Add a tvbuff version of crc6_compute(). 2014-08-08 20:03:29 +00:00
Makefile.nmake Use forward slashes in paths to runlex.sh 2014-07-20 13:15:59 +00:00
addr_and_mask.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
addr_and_mask.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
addr_resolv.c Fix regression introduced by gf3b631668b 2014-08-09 17:30:44 +00:00
addr_resolv.h More name changes. 2014-04-19 19:30:17 +00:00
address.h Fix whitespace/indentation to match editor modelines. 2014-08-05 20:42:21 +00:00
address_to_str.c Add Bus ID to USB Address Column 2014-07-04 02:20:38 +00:00
afn.c Add MAC address family numbers (RFC 7042) 2014-05-21 12:04:54 +00:00
afn.h Add MAC address family numbers (RFC 7042) 2014-05-21 12:04:54 +00:00
aftypes.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
aftypes.h Add all AF_ types for Windows that are in WinSock.h or WinSock2.h 2014-06-23 16:48:16 +00:00
app_mem_usage.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
app_mem_usage.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
arcnet_pids.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
arptypes.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
asm_utils.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
asm_utils.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
asm_utils_win32_x86.asm Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
asn1.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
asn1.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
atalk-utils.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
atalk-utils.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ax25_pids.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
bridged_pids.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
charsets.c Use 4-space indentation consistently in epan/charsets.c. 2014-04-25 09:36:11 +00:00
charsets.h Fix whitespace/indentation to match editor modelines. 2014-08-05 20:42:21 +00:00
chdlctypes.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
circuit.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
circuit.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
column-info.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
column-utils.c Add col_append_lstr(), speedup column generation for TCP. 2014-06-23 03:33:59 +00:00
column-utils.h Add col_append_lstr(), speedup column generation for TCP. 2014-06-23 03:33:59 +00:00
column.c (Pedantic): set editor modelines tab-width & etc to 8; Also: fix some indentation in packet-sip.c 2014-04-03 15:31:56 +00:00
column.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
conv_id.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
conversation.c we're matching against {any}/port_b, not address_b 2014-08-06 19:45:14 +00:00
conversation.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
conversation_debug.h Fix missing license in conversation_debug.h 2014-03-21 13:35:48 +00:00
conversation_table.c Refactor "common" hostlist/endpoint table functionality. 2014-08-18 04:24:39 +00:00
conversation_table.h Refactor "common" hostlist/endpoint table functionality. 2014-08-18 04:24:39 +00:00
crc6-tvb.c Add a tvbuff version of crc6_compute(). 2014-08-08 20:03:29 +00:00
crc6-tvb.h Add a tvbuff version of crc6_compute(). 2014-08-08 20:03:29 +00:00
crc8-tvb.c Add CRC-8 calculator for EPON 2014-04-17 20:38:44 +00:00
crc8-tvb.h Add CRC-8 calculator for EPON 2014-04-17 20:38:44 +00:00
crc10-tvb.c Clean up the CRC-10 code. 2014-08-08 18:09:02 +00:00
crc10-tvb.h Clean up the CRC-10 code. 2014-08-08 18:09:02 +00:00
crc16-tvb.c Add routines for CRC-16 with a polynomial of 0x3D65. 2014-08-08 15:58:06 +00:00
crc16-tvb.h Add routines for CRC-16 with a polynomial of 0x3D65. 2014-08-08 15:58:06 +00:00
crc32-tvb.c Wrap some tvb_get_ptr calls in crc32c_tvb_offset_calculate(). 2014-08-08 03:39:08 +00:00
crc32-tvb.h Wrap some tvb_get_ptr calls in crc32c_tvb_offset_calculate(). 2014-08-08 03:39:08 +00:00
decode_as.c Remove a comment asking a question, as the answer is "no". 2014-08-04 22:01:06 +00:00
decode_as.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
diam_dict.h Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
diam_dict.l Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
disabled_protos.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
disabled_protos.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dissector_filters.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dissector_filters.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
doxygen.cfg.in Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
dtd.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dtd_grammar.lemon Continue to remove $Id$ from top of file 2014-03-31 18:30:52 +00:00
dtd_parse.h Continue to remove $Id$ from top of file 2014-03-31 18:30:52 +00:00
dtd_parse.l Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
dtd_preparse.l Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
dvb_chartbl.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dvb_chartbl.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dwarf.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dwarf.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
eap.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
eapol_keydes_types.h Add a dissector table for EAPOL Key Descriptor types. 2014-03-23 19:18:51 +00:00
emem.c remove more unused code 2014-06-16 19:11:03 +00:00
emem.h Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
enterprise-numbers [Automatic manuf, services and enterprise-numbers update for 2014-08-17] 2014-08-17 15:05:40 +00:00
epan-int.h Revert "Allow pcapng interface options to be available to dissectors." 2014-03-20 12:25:21 +00:00
epan.c Have individual programs get libpcap and libz version info. 2014-06-23 21:56:42 +00:00
epan.h Add support for dissecting non-packet records. 2014-05-25 00:05:07 +00:00
epan_dissect.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
etypes.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ex-opt.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ex-opt.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
except.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
except.h Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
exceptions.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
exntest.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
expert.c Allow severity levels of expert info items to be configured by the user. 2014-07-26 01:03:07 +00:00
expert.h Allow severity levels of expert info items to be configured by the user. 2014-07-26 01:03:07 +00:00
exported_pdu.c Add the ability to dynamically add a new protocol to export PDU dialog box 2014-06-19 06:48:32 +00:00
exported_pdu.h Add the ability to dynamically add a new protocol to export PDU dialog box 2014-06-19 06:48:32 +00:00
filter_expressions.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
filter_expressions.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
follow.c Fix tshark -z follow,tcp stats regression when TCP stream index is > 0 2014-05-12 05:20:45 +00:00
follow.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
frame_data.c I don't see the point of inserting p_proto_data sorted use 2014-07-10 12:28:27 +00:00
frame_data.h Add WS_DLL_PUBLIC for p_remove_proto_data and tvb_child_uncompres function 2014-04-07 04:09:10 +00:00
frame_data_sequence.c Fix whitespace/indentation to match editor modelines. 2014-08-05 20:42:21 +00:00
frame_data_sequence.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
frequency-utils.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
frequency-utils.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
funnel.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
funnel.h Rename and move ui/stat_menu.h to epan/stat_groups.h. 2014-07-03 20:30:42 +00:00
garrayfix.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
gcp.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
gcp.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
geoip_db.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
geoip_db.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
golay.c Fix indent (use 4 spaces) and add modelines 2014-06-19 19:56:33 +00:00
golay.h Fix indent (use 4 spaces) and add modelines 2014-06-19 19:56:33 +00:00
greproto.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
guid-utils.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
guid-utils.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
h225-persistentdata.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
h225-persistentdata.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
iana_snap_pid.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
iax2_codec_type.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
in_cksum.c Clean up Internet checksum handling. 2014-08-09 01:09:34 +00:00
in_cksum.h Clean up Internet checksum handling. 2014-08-09 01:09:34 +00:00
ip_opts.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ipproto.c IP Protocol : Update description of IP Protocol 2014-05-16 14:18:02 +00:00
ipproto.h Add modelines info 2014-05-16 14:16:59 +00:00
ipv4.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ipv4.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ipv6-utils.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
lapd_sapi.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
llcsaps.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
next_tvb.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
next_tvb.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
nlpid.h An NLPID of 0xc0 refers to TRILL. 2014-08-15 10:16:03 +00:00
oids.c Fix unused variable warnings found by clang. 2014-04-11 01:32:13 +00:00
oids.h Fix whitespace/indentation to match editor modelines. 2014-08-05 20:42:21 +00:00
oids_test.c Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
osi-utils.c Put the system ID in the top-level items for neighbors. 2014-04-14 22:43:25 +00:00
osi-utils.h Put the system ID in the top-level items for neighbors. 2014-04-14 22:43:25 +00:00
oui.c OUI: Fix indent (use 4spaces) and modelines info 2014-08-16 21:56:49 +00:00
oui.h Just have one value_string table for OUIs. 2014-06-01 09:19:40 +00:00
packet-range.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
packet-range.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
packet.c Rename dissector_add_handle() to dissector_add_for_decode_as(). 2014-06-20 16:43:56 +00:00
packet.h Rename dissector_add_handle() to dissector_add_for_decode_as(). 2014-06-20 16:43:56 +00:00
packet_info.h Add support for dissecting non-packet records. 2014-05-25 00:05:07 +00:00
params.h params.h: Yet another Ethereal --> Wireshark 2014-08-15 14:40:57 +00:00
ppptypes.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
prefs-int.h [WIP] Add a conversation dialog. 2014-07-21 23:19:09 +00:00
prefs.c Fix whitespace/indentation to match editor modelines. 2014-08-05 20:42:21 +00:00
prefs.h prefs.h : fix indent (use 4 spaces) and add modelines info 2014-08-17 02:29:31 +00:00
print.c If we have no fields, don't try to iterate through them. 2014-06-27 03:27:24 +00:00
print.h Check the validity of fields given to tshark with "-e": complain and exit if 2014-06-27 00:48:51 +00:00
print.ps
proto.c "Highly discourage" use of proto_tree_add_text. 2014-08-19 16:20:34 +00:00
proto.h proto.h; (try to) fix bug in DISSECTOR_ASSERT_CMP... macros; 2014-08-20 15:12:59 +00:00
ps.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
ptvcursor.h Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
radius_dict.l Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
range.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
range.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
reassemble.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
reassemble.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
reassemble_test.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
reedsolomon.c Remove trailing whitespace 2014-02-25 20:46:49 +00:00
reedsolomon.h
req_resp_hdrs.c - Replace tvb_length_remaining -> tvb_captured_length_remaining, 2014-05-14 10:50:22 +00:00
req_resp_hdrs.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
rtp_pt.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sctpppids.h Add the PPID for 3GPP Pua. Move the (unregistered) M2TP PPID into that dissector. 2014-03-01 21:16:59 +00:00
show_exception.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
show_exception.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sigcomp-udvm.c udvm: free the buffer *before* throwing the exception 2014-07-08 04:21:46 +00:00
sigcomp-udvm.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sigcomp_state_hdlr.c Optimize epan_new/init_dissection 2014-07-01 04:21:14 +00:00
sigcomp_state_hdlr.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
slow_protocol_subtypes.h Add a copyright/idempotency wrapper. 2014-05-31 06:08:45 +00:00
sminmpec.c [Automatic manuf, services and enterprise-numbers update for 2014-08-17] 2014-08-17 15:05:40 +00:00
sminmpec.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sna-utils.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sna-utils.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
stat_cmd_args.c Apply refactored "conversation" (tap) data to TShark. 2014-07-30 16:12:54 +00:00
stat_cmd_args.h Refactor "common" Conversation table functionality. 2014-07-26 20:59:42 +00:00
stat_groups.h Sometimes Git can be a real pain. 2014-07-03 20:32:02 +00:00
stats_tree.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
stats_tree.h Rename and move ui/stat_menu.h to epan/stat_groups.h. 2014-07-03 20:30:42 +00:00
stats_tree_priv.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
stream.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
stream.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
strutil.c Add tvb_get and proto_tree_add for string-encoded byte arrays 2014-04-17 14:04:19 +00:00
strutil.h Add tvb_get and proto_tree_add for string-encoded byte arrays 2014-04-17 14:04:19 +00:00
t35.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
t35.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tap-voip.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tap.c Increase tap limit to 5000 2014-04-14 06:29:55 +00:00
tap.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tfs.c Add two new true_fals strings. 2014-08-07 13:34:29 +00:00
tfs.h Add two new true_fals strings. 2014-08-07 13:34:29 +00:00
time_fmt.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
timestamp.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
timestamp.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
timestats.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
timestats.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
to_str-int.h Document to_str-int.h functions. 2014-04-30 22:08:36 +00:00
to_str.c Fix up some white space. 2014-07-30 02:56:41 +00:00
to_str.h Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
tpg.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tpg.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tvbparse.c Fix compilation warning 2014-06-18 07:23:38 +00:00
tvbparse.h Continue to remove $Id$ from top of file 2014-03-31 18:30:52 +00:00
tvbtest.c Fix warnings in test binaries 2014-06-19 18:24:09 +00:00
tvbuff-int.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tvbuff.c Add a routine to check whether all bytes implied by a 64-bit length exist. 2014-08-02 18:33:11 +00:00
tvbuff.h Add a routine to check whether all bytes implied by a 64-bit length exist. 2014-08-02 18:33:11 +00:00
tvbuff_base64.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tvbuff_composite.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tvbuff_real.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tvbuff_subset.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tvbuff_zlib.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
uat-int.h Continue to remove $Id$ from top of file 2014-03-31 15:59:51 +00:00
uat.c Remove now-unused functions. 2014-06-16 15:19:48 +00:00
uat.h Remove now-unused functions. 2014-06-16 15:19:48 +00:00
uat_load.l Removed SVN Id from epan dir. 2014-06-19 19:46:22 +00:00
value_string.c Make value_string_ext const-correct. 2014-07-27 22:02:42 +00:00
value_string.h Make value_string_ext const-correct. 2014-07-27 22:02:42 +00:00
x264_prt_id.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
xdlc.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
xdlc.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00