aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-05-05 17:19:51 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-05-05 17:19:51 +0000
commit57ebbbbb2c72ee51acee3c8d0300212217c460a4 (patch)
tree8200135e270767dd851ba71c42a911928335cbf5 /plugins/docsis
parente9a197ee94f77cb156681486a1c0a1edddd9acc0 (diff)
Dount use proto_tree_add_item_hidden().
svn path=/trunk/; revision=25233
Diffstat (limited to 'plugins/docsis')
-rw-r--r--plugins/docsis/packet-docsis.c10
-rw-r--r--plugins/docsis/packet-map.c11
2 files changed, 13 insertions, 8 deletions
diff --git a/plugins/docsis/packet-docsis.c b/plugins/docsis/packet-docsis.c
index 7388fc60f6..2e17c8cd46 100644
--- a/plugins/docsis/packet-docsis.c
+++ b/plugins/docsis/packet-docsis.c
@@ -183,7 +183,7 @@ static void
dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag)
{
proto_tree *ehdr_tree;
- proto_item *it;
+ proto_item *it, *item;
gint ehdrlen;
int pos;
guint8 type;
@@ -203,8 +203,9 @@ dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag)
len = (tvb_get_guint8 (tvb, pos) & 0x0F);
if ((((type >> 4) & 0x0F)== 6) && (len == 2))
{
- proto_tree_add_item_hidden (ehdr_tree, hf_docsis_eh_type, tvb, pos, 1, FALSE);
- proto_tree_add_text(ehdr_tree, tvb, pos, 1, "0110 .... = Unsolicited Grant Sync EHDR Sub-Element" );
+ item = proto_tree_add_item(ehdr_tree, hf_docsis_eh_type, tvb, pos, 1, FALSE);
+ PROTO_ITEM_SET_HIDDEN(item);
+ proto_tree_add_text(ehdr_tree, tvb, pos, 1, "0110 .... = Unsolicited Grant Sync EHDR Sub-Element" );
}
else
proto_tree_add_item (ehdr_tree, hf_docsis_eh_type, tvb, pos, 1, FALSE);
@@ -281,7 +282,8 @@ dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag)
val = tvb_get_guint8 (tvb, pos+1);
if (val == 0)
{
- proto_tree_add_item_hidden (ehdr_tree, hf_docsis_ehdr_phsi, tvb, pos+1, 1, FALSE);
+ item = proto_tree_add_item(ehdr_tree, hf_docsis_ehdr_phsi, tvb, pos+1, 1, FALSE);
+ PROTO_ITEM_SET_HIDDEN(item);
proto_tree_add_text (ehdr_tree, tvb, pos+1, 1, "0000 0000 = No PHS on current packet" );
}
else
diff --git a/plugins/docsis/packet-map.c b/plugins/docsis/packet-map.c
index c80e0a71e7..dc37e3ca21 100644
--- a/plugins/docsis/packet-map.c
+++ b/plugins/docsis/packet-map.c
@@ -88,7 +88,7 @@ dissect_map (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
guint8 iuc;
guint16 offset;
guint32 ie, temp, mask;
- proto_item *it;
+ proto_item *it, *item;
proto_tree *map_tree;
guint8 upchid, ucd_count;
@@ -150,9 +150,12 @@ dissect_map (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
iuc = (guint8) (temp & 0x0F);
mask = 0x3FFF;
offset = (guint16) (ie & mask);
- proto_tree_add_item_hidden(map_tree, hf_docsis_map_sid, tvb, pos, 4, FALSE);
- proto_tree_add_item_hidden(map_tree, hf_docsis_map_iuc, tvb, pos, 4, FALSE);
- proto_tree_add_item_hidden(map_tree, hf_docsis_map_offset, tvb, pos, 4, FALSE);
+ item = proto_tree_add_item(map_tree, hf_docsis_map_sid, tvb, pos, 4, FALSE);
+ PROTO_ITEM_SET_HIDDEN(item);
+ item = proto_tree_add_item(map_tree, hf_docsis_map_iuc, tvb, pos, 4, FALSE);
+ PROTO_ITEM_SET_HIDDEN(item);
+ item = proto_tree_add_item(map_tree, hf_docsis_map_offset, tvb, pos, 4, FALSE);
+ PROTO_ITEM_SET_HIDDEN(item);
if (sid == 0x3FFF)
proto_tree_add_uint_format (map_tree, hf_docsis_map_ie, tvb, pos, 4,
ie, "SID = 0x%x (All CM's), IUC = %s, Offset = %u",