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-auto_rp.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-auto_rp.c')
-rw-r--r-- | epan/dissectors/packet-auto_rp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-auto_rp.c b/epan/dissectors/packet-auto_rp.c index 3c0d430766..4080ca4c2d 100644 --- a/epan/dissectors/packet-auto_rp.c +++ b/epan/dissectors/packet-auto_rp.c @@ -113,7 +113,7 @@ static const value_string auto_rp_mask_sign_vals[] = { static int do_auto_rp_map(tvbuff_t *tvb, int offset, proto_tree *auto_rp_tree); -static void dissect_auto_rp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int dissect_auto_rp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { guint8 ver_type, rp_count; @@ -163,7 +163,7 @@ static void dissect_auto_rp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(tree, hf_auto_rp_trailing_junk, tvb, offset, -1, ENC_NA); } - return; + return tvb_captured_length(tvb); } /* @@ -297,7 +297,7 @@ proto_reg_handoff_auto_rp(void) { dissector_handle_t auto_rp_handle; - auto_rp_handle = create_dissector_handle(dissect_auto_rp, + auto_rp_handle = new_create_dissector_handle(dissect_auto_rp, proto_auto_rp); dissector_add_uint("udp.port", UDP_PORT_PIM_RP_DISC, auto_rp_handle); } |