aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-3com-xns.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-3com-xns.c')
-rw-r--r--epan/dissectors/packet-3com-xns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-3com-xns.c b/epan/dissectors/packet-3com-xns.c
index 6ebe418ba6..c7706aeb16 100644
--- a/epan/dissectors/packet-3com-xns.c
+++ b/epan/dissectors/packet-3com-xns.c
@@ -61,8 +61,8 @@ static dissector_handle_t data_handle;
* but with random stuff that appears neither to be XNS nor Retix
* spanning tree.
*/
-static void
-dissect_3com_xns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_3com_xns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_tree *subtree;
proto_tree *ti;
@@ -88,6 +88,7 @@ dissect_3com_xns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
type, next_tvb, pinfo, tree))
call_dissector(data_handle, next_tvb, pinfo, tree);
}
+ return tvb_captured_length(tvb);
}
void
@@ -123,7 +124,7 @@ proto_reg_handoff_3com_xns(void)
ethertype_subdissector_table = find_dissector_table("ethertype");
- our_xns_handle = create_dissector_handle(dissect_3com_xns, proto_3com_xns);
+ our_xns_handle = new_create_dissector_handle(dissect_3com_xns, proto_3com_xns);
dissector_add_uint("llc.dsap", 0x80, our_xns_handle);
}