diff options
Diffstat (limited to 'epan/dissectors/packet-interlink.c')
-rw-r--r-- | epan/dissectors/packet-interlink.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-interlink.c b/epan/dissectors/packet-interlink.c index e459424630..6fb463ae6c 100644 --- a/epan/dissectors/packet-interlink.c +++ b/epan/dissectors/packet-interlink.c @@ -65,8 +65,8 @@ static const value_string names_cmd[] = { }; -static void -dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { int offset = 0; proto_tree *il_tree; @@ -143,6 +143,8 @@ dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Call the sub-dissector. */ call_dissector(handle, next_tvb, pinfo, tree); + + return tvb_captured_length(tvb); } @@ -160,7 +162,7 @@ dissect_interlink_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void ) return FALSE; - dissect_interlink(tvb, pinfo, tree); + dissect_interlink(tvb, pinfo, tree, data); return TRUE; } @@ -213,7 +215,7 @@ proto_register_interlink(void) "interlink"); proto_register_field_array(proto_interlink, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - register_dissector("interlink", dissect_interlink, proto_interlink); + new_register_dissector("interlink", dissect_interlink, proto_interlink); /* Probably someone will write sub-dissectors. You can never know. */ subdissector_table = register_dissector_table("interlink.type_version", |