diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-14 09:23:33 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-14 21:54:27 +0000 |
commit | 28ea58251c04562cc0670e57bf073dc6966e73e6 (patch) | |
tree | abe57292f17b280056a73ee7cfdc94abdcaaaaf3 /epan/dissectors/packet-ua.c | |
parent | 13101020e12eb21e8464a3c4eb4fc2fe51409235 (diff) |
register_dissector -> new_register_dissector
Picking off "easy" dissectors that only have one or two exit points at most.
This concludes a "first pass" over the dissector directory.
Change-Id: If5ce5484214be50fe541cba478da1de62e354297
Reviewed-on: https://code.wireshark.org/review/11830
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-ua.c')
-rw-r--r-- | epan/dissectors/packet-ua.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ua.c b/epan/dissectors/packet-ua.c index 986b890d30..976ed171cd 100644 --- a/epan/dissectors/packet-ua.c +++ b/epan/dissectors/packet-ua.c @@ -240,14 +240,16 @@ static void _dissect_ua_msg(tvbuff_t *tvb, } -static void dissect_ua_sys_to_term(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int dissect_ua_sys_to_term(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { _dissect_ua_msg(tvb, pinfo, tree, SYS_TO_TERM); + return tvb_captured_length(tvb); } -static void dissect_ua_term_to_sys(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int dissect_ua_term_to_sys(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { _dissect_ua_msg(tvb, pinfo, tree, TERM_TO_SYS); + return tvb_captured_length(tvb); } @@ -267,8 +269,8 @@ void proto_register_ua_msg(void) /* UA dissector registration */ proto_ua_msg = proto_register_protocol("Universal Alcatel Protocol", "UA", "ua"); - register_dissector("ua_sys_to_term", dissect_ua_sys_to_term, proto_ua_msg); - register_dissector("ua_term_to_sys", dissect_ua_term_to_sys, proto_ua_msg); + new_register_dissector("ua_sys_to_term", dissect_ua_sys_to_term, proto_ua_msg); + new_register_dissector("ua_term_to_sys", dissect_ua_term_to_sys, proto_ua_msg); /* Common subtree array registration */ proto_register_subtree_array(ett, array_length(ett)); |