diff options
Diffstat (limited to 'epan/dissectors/packet-loop.c')
-rw-r--r-- | epan/dissectors/packet-loop.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-loop.c b/epan/dissectors/packet-loop.c index e19c9f90f8..9aad70a671 100644 --- a/epan/dissectors/packet-loop.c +++ b/epan/dissectors/packet-loop.c @@ -52,8 +52,8 @@ static const value_string function_vals[] = { { 0, NULL } }; -static void -dissect_loop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_loop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_tree *loop_tree = NULL; proto_item *ti; @@ -118,6 +118,7 @@ dissect_loop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) next_tvb = tvb_new_subset_remaining(tvb, offset); call_dissector(data_handle, next_tvb, pinfo, tree); } + return tvb_captured_length(tvb); } void @@ -164,7 +165,7 @@ proto_reg_handoff_loop(void) { dissector_handle_t loop_handle; - loop_handle = create_dissector_handle(dissect_loop, proto_loop); + loop_handle = new_create_dissector_handle(dissect_loop, proto_loop); dissector_add_uint("ethertype", ETHERTYPE_LOOP, loop_handle); |