aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ax4000.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-15 08:00:10 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-16 03:50:05 +0000
commitbbdd89b973353a0df1d98d884c38f3832670bfea (patch)
tree9b992f923f565af2fcab30902508a191de85ca53 /epan/dissectors/packet-ax4000.c
parent6012ba8f008bfba24fd44ce7a2a3055572453dce (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-ax4000.c')
-rw-r--r--epan/dissectors/packet-ax4000.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ax4000.c b/epan/dissectors/packet-ax4000.c
index a7c11dc114..42ad69239b 100644
--- a/epan/dissectors/packet-ax4000.c
+++ b/epan/dissectors/packet-ax4000.c
@@ -43,8 +43,8 @@ static int hf_ax4000_crc = -1;
static gint ett_ax4000 = -1;
/* Code to actually dissect the packets */
-static void
-dissect_ax4000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_ax4000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_item *ti;
proto_tree *ax4000_tree;
@@ -91,6 +91,7 @@ dissect_ax4000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hf_ax4000_crc, tvb, 14, 2, tvb_get_letohs(tvb, 14));
}
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -162,7 +163,7 @@ proto_reg_handoff_ax4000(void)
{
dissector_handle_t ax4000_handle;
- ax4000_handle = create_dissector_handle(dissect_ax4000,
+ ax4000_handle = new_create_dissector_handle(dissect_ax4000,
proto_ax4000);
dissector_add_uint("ip.proto", IP_PROTO_AX4000, ax4000_handle);
dissector_add_uint("tcp.port", AX4000_TCP_PORT, ax4000_handle);