diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-07-14 08:37:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-07-14 08:37:45 +0000 |
commit | 2e7f37aee73665021d78445572fd7793682e7b5f (patch) | |
tree | c11621180a1f187124645c054d010a11e72bf79d /plugins/docsis | |
parent | 9d1fdfedb76e9706a5729ee78a62c0c5871684d6 (diff) |
From Anand V. Narwani: fix so that when a filter is applied to a DOCSIS
management frame, the Info column isn't erased.
Replace a call to "tvb_length_remaining()" with the value returned by a
earlier identical call.
svn path=/trunk/; revision=5867
Diffstat (limited to 'plugins/docsis')
-rw-r--r-- | plugins/docsis/packet-tlv.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/docsis/packet-tlv.c b/plugins/docsis/packet-tlv.c index 1d2e10d64f..21791fed87 100644 --- a/plugins/docsis/packet-tlv.c +++ b/plugins/docsis/packet-tlv.c @@ -1785,7 +1785,7 @@ dissect_snmpv3_kickstart(tvbuff_t * tvb, proto_tree *tree, guint16 start, guint1 } static void -dissect_tlv (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +dissect_tlv (tvbuff_t * tvb, packet_info * pinfo _U_, proto_tree * tree) { proto_item *it; @@ -1797,16 +1797,12 @@ dissect_tlv (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) total_len = tvb_length_remaining (tvb, 0); - if (check_col (pinfo->cinfo, COL_INFO)) - col_clear (pinfo->cinfo, COL_INFO); - if (tree) { it = proto_tree_add_protocol_format (tree, proto_docsis_tlv, tvb, 0, - tvb_length_remaining (tvb, 0), - "TLV Data"); + total_len, "TLV Data"); tlv_tree = proto_item_add_subtree (it, ett_docsis_tlv); while (pos < total_len) { |