diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-15 08:00:10 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-16 03:50:05 +0000 |
commit | bbdd89b973353a0df1d98d884c38f3832670bfea (patch) | |
tree | 9b992f923f565af2fcab30902508a191de85ca53 /epan/dissectors/packet-cgmp.c | |
parent | 6012ba8f008bfba24fd44ce7a2a3055572453dce (diff) |
create_dissector_handle -> new_create_dissector_handle
Picking off "easy" dissectors that only have one or two exit points at most.
Change-Id: Ie514f126352e7598acc4f7c38db9c61d105d5e48
Reviewed-on: https://code.wireshark.org/review/11850
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-cgmp.c')
-rw-r--r-- | epan/dissectors/packet-cgmp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-cgmp.c b/epan/dissectors/packet-cgmp.c index b960397944..48997b2e56 100644 --- a/epan/dissectors/packet-cgmp.c +++ b/epan/dissectors/packet-cgmp.c @@ -50,8 +50,8 @@ static const value_string type_vals[] = { { 0, NULL }, }; -static void -dissect_cgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_cgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_item *ti; proto_tree *cgmp_tree = NULL; @@ -93,6 +93,7 @@ dissect_cgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) count--; } } + return tvb_captured_length(tvb); } void @@ -138,7 +139,7 @@ proto_reg_handoff_cgmp(void) { dissector_handle_t cgmp_handle; - cgmp_handle = create_dissector_handle(dissect_cgmp, proto_cgmp); + cgmp_handle = new_create_dissector_handle(dissect_cgmp, proto_cgmp); dissector_add_uint("llc.cisco_pid", 0x2001, cgmp_handle); dissector_add_uint("ethertype", 0x2001, cgmp_handle); } |