aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-egd.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-egd.c')
-rw-r--r--epan/dissectors/packet-egd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-egd.c b/epan/dissectors/packet-egd.c
index aba37217a0..89ceb797db 100644
--- a/epan/dissectors/packet-egd.c
+++ b/epan/dissectors/packet-egd.c
@@ -88,7 +88,7 @@ static int hf_egd_resv = -1;
static gint ett_egd = -1;
static gint ett_status_item = -1;
-static void dissect_egd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int dissect_egd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
/* replace UDP with EGD in display */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "EGD");
@@ -153,6 +153,7 @@ static void dissect_egd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
call_dissector(data_handle, next_tvb, pinfo, egd_tree);
}
}
+ return tvb_captured_length(tvb);
}
void proto_register_egd(void)
@@ -240,7 +241,7 @@ void proto_reg_handoff_egd(void)
{
dissector_handle_t egd_handle;
- egd_handle = create_dissector_handle(dissect_egd, proto_egd);
+ egd_handle = new_create_dissector_handle(dissect_egd, proto_egd);
dissector_add_uint("udp.port", EGD_PORT, egd_handle);
/* find data dissector */