aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-dcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-dcd.c')
-rw-r--r--plugins/docsis/packet-dcd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dcd.c b/plugins/docsis/packet-dcd.c
index 277a4d1551..c9077fe8ed 100644
--- a/plugins/docsis/packet-dcd.c
+++ b/plugins/docsis/packet-dcd.c
@@ -509,8 +509,8 @@ dissect_dcd_down_classifier (tvbuff_t * tvb, proto_tree * tree, int start, guint
}
}
-static void
-dissect_dcd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_dcd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
guint16 pos;
guint8 type, length;
@@ -554,6 +554,7 @@ dissect_dcd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
} /* while (pos < len) */
} /* if (tree) */
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -842,7 +843,7 @@ proto_register_docsis_dcd (void)
proto_register_field_array (proto_docsis_dcd, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
- register_dissector ("docsis_dcd", dissect_dcd, proto_docsis_dcd);
+ new_register_dissector ("docsis_dcd", dissect_dcd, proto_docsis_dcd);
}
void