aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-echo.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-echo.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-echo.c')
-rw-r--r--epan/dissectors/packet-echo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-echo.c b/epan/dissectors/packet-echo.c
index 54036fbf1f..990384313e 100644
--- a/epan/dissectors/packet-echo.c
+++ b/epan/dissectors/packet-echo.c
@@ -42,7 +42,7 @@ static int hf_echo_response = -1;
static gint ett_echo = -1;
-static void dissect_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int dissect_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
int offset = 0;
@@ -75,6 +75,8 @@ static void dissect_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
+ return tvb_captured_length(tvb);
+
} /* dissect_echo */
void proto_register_echo(void)
@@ -110,7 +112,7 @@ void proto_reg_handoff_echo(void)
dissector_handle_t echo_handle;
- echo_handle = create_dissector_handle(dissect_echo, proto_echo);
+ echo_handle = new_create_dissector_handle(dissect_echo, proto_echo);
dissector_add_uint("udp.port", ECHO_PORT, echo_handle);
dissector_add_uint("tcp.port", ECHO_PORT, echo_handle);