diff options
Diffstat (limited to 'plugins/docsis/packet-dccack.c')
-rw-r--r-- | plugins/docsis/packet-dccack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dccack.c b/plugins/docsis/packet-dccack.c index 01fb48b0b5..922df79649 100644 --- a/plugins/docsis/packet-dccack.c +++ b/plugins/docsis/packet-dccack.c @@ -43,8 +43,8 @@ static int hf_docsis_dccack_hmac_digest = -1; static gint ett_docsis_dccack = -1; /* Dissection */ -static void -dissect_dccack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_dccack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { guint16 pos; guint8 type, length; @@ -97,6 +97,7 @@ dissect_dccack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) pos = pos + length; } /* while (pos < len) */ } /* if (tree) */ + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -145,7 +146,7 @@ proto_register_docsis_dccack (void) proto_register_field_array (proto_docsis_dccack, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_dccack", dissect_dccack, proto_docsis_dccack); + new_register_dissector ("docsis_dccack", dissect_dccack, proto_docsis_dccack); } void |