aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-intrngreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-intrngreq.c')
-rw-r--r--plugins/docsis/packet-intrngreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-intrngreq.c b/plugins/docsis/packet-intrngreq.c
index 94fd39bfe7..b76fc2d715 100644
--- a/plugins/docsis/packet-intrngreq.c
+++ b/plugins/docsis/packet-intrngreq.c
@@ -38,8 +38,8 @@ void proto_reg_handoff_docsis_intrngreq(void);
static gint ett_docsis_intrngreq = -1;
/* Dissection */
-static void
-dissect_intrngreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_intrngreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
proto_item *intrngreq_item;
proto_tree *intrngreq_tree;
@@ -63,6 +63,7 @@ dissect_intrngreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
proto_tree_add_item (intrngreq_tree, hf_docsis_intrngreq_up_chid, tvb, 3,
1, ENC_BIG_ENDIAN);
}
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -99,7 +100,7 @@ proto_register_docsis_intrngreq (void)
proto_register_field_array (proto_docsis_intrngreq, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
- register_dissector ("docsis_intrngreq", dissect_intrngreq, proto_docsis_intrngreq);
+ new_register_dissector ("docsis_intrngreq", dissect_intrngreq, proto_docsis_intrngreq);
}
void