From 2e7f37aee73665021d78445572fd7793682e7b5f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 14 Jul 2002 08:37:45 +0000 Subject: 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 --- plugins/docsis/packet-tlv.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/docsis') 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) { -- cgit v1.2.3