diff options
Diffstat (limited to 'plugins/docsis/packet-uccrsp.c')
-rw-r--r-- | plugins/docsis/packet-uccrsp.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/plugins/docsis/packet-uccrsp.c b/plugins/docsis/packet-uccrsp.c index 54b0d678a9..47fa5f0072 100644 --- a/plugins/docsis/packet-uccrsp.c +++ b/plugins/docsis/packet-uccrsp.c @@ -43,25 +43,18 @@ dissect_uccrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* da { proto_item *it; proto_tree *uccrsp_tree; - guint8 chid; + guint32 chid; - chid = tvb_get_guint8 (tvb, 0); + it = proto_tree_add_item(tree, proto_docsis_uccrsp, tvb, 0, -1, ENC_NA); + uccrsp_tree = proto_item_add_subtree (it, ett_docsis_uccrsp); + + proto_tree_add_item_ret_uint (uccrsp_tree, hf_docsis_uccrsp_upchid, tvb, 0, 1, ENC_BIG_ENDIAN, &chid); col_add_fstr (pinfo->cinfo, COL_INFO, "Upstream Channel Change response Channel ID = %u (U%u)", chid, (chid > 0 ? chid - 1 : chid)); - if (tree) - { - it = - proto_tree_add_protocol_format (tree, proto_docsis_uccrsp, tvb, 0, -1, - "UCC Response"); - uccrsp_tree = proto_item_add_subtree (it, ett_docsis_uccrsp); - proto_tree_add_item (uccrsp_tree, hf_docsis_uccrsp_upchid, tvb, 0, 1, - ENC_BIG_ENDIAN); - } - - return tvb_captured_length(tvb); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ |