diff options
Diffstat (limited to 'plugins/docsis/packet-bpkmrsp.c')
-rw-r--r-- | plugins/docsis/packet-bpkmrsp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-bpkmrsp.c b/plugins/docsis/packet-bpkmrsp.c index 6cd5f20f2d..48a1785f93 100644 --- a/plugins/docsis/packet-bpkmrsp.c +++ b/plugins/docsis/packet-bpkmrsp.c @@ -60,8 +60,8 @@ static gint ett_docsis_bpkmrsp = -1; static dissector_handle_t attrs_handle; /* Dissection */ -static void -dissect_bpkmrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_bpkmrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *it; proto_tree *bpkmrsp_tree; @@ -90,6 +90,7 @@ dissect_bpkmrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* Code to Call subdissector */ attrs_tvb = tvb_new_subset_remaining (tvb, 4); call_dissector (attrs_handle, attrs_tvb, pinfo, tree); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -126,7 +127,7 @@ proto_register_docsis_bpkmrsp (void) proto_register_field_array (proto_docsis_bpkmrsp, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_bpkmrsp", dissect_bpkmrsp, + new_register_dissector ("docsis_bpkmrsp", dissect_bpkmrsp, proto_docsis_bpkmrsp); } |