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-bofl.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-bofl.c')
-rw-r--r-- | epan/dissectors/packet-bofl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bofl.c b/epan/dissectors/packet-bofl.c index c0896a0274..92969ad6d6 100644 --- a/epan/dissectors/packet-bofl.c +++ b/epan/dissectors/packet-bofl.c @@ -58,8 +58,8 @@ static int hf_bofl_padding = -1; static gint ett_bofl = -1; /* Code to actually dissect the packets */ -static void -dissect_bofl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_bofl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_item *ti; proto_tree *bofl_tree; @@ -88,6 +88,8 @@ dissect_bofl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) len = tvb_reported_length_remaining(tvb, 8); if (len > 0) proto_tree_add_item(bofl_tree, hf_bofl_padding, tvb, 8, -1, ENC_NA); + + return tvb_captured_length(tvb); } @@ -128,7 +130,7 @@ proto_reg_handoff_bofl(void) { dissector_handle_t bofl_handle; - bofl_handle = create_dissector_handle(dissect_bofl, proto_bofl); + bofl_handle = new_create_dissector_handle(dissect_bofl, proto_bofl); dissector_add_uint("ethertype", ETHER_TYPE_BOFL, bofl_handle); } |