aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
parente9a197ee94f77cb156681486a1c0a1edddd9acc0 (diff)
Dount use proto_tree_add_item_hidden().
svn path=/trunk/; revision=25233
Diffstat (limited to 'plugins')
-rw-r--r--plugins/artnet/packet-artnet.c4
-rw-r--r--plugins/docsis/packet-docsis.c10
-rw-r--r--plugins/docsis/packet-map.c11
-rw-r--r--plugins/enttec/packet-enttec.c4
4 files changed, 19 insertions, 10 deletions
diff --git a/plugins/artnet/packet-artnet.c b/plugins/artnet/packet-artnet.c
index 79c76fa053..c0eecb7e8a 100644
--- a/plugins/artnet/packet-artnet.c
+++ b/plugins/artnet/packet-artnet.c
@@ -755,6 +755,7 @@ static guint
dissect_artnet_output(tvbuff_t *tvb, guint offset, proto_tree *tree)
{
proto_tree *hi,*si;
+ proto_item *item;
guint16 length,r,c,row_count;
guint8 v;
static char string[255];
@@ -823,8 +824,9 @@ dissect_artnet_output(tvbuff_t *tvb, guint offset, proto_tree *tree)
}
/* Add the real type hidden */
- proto_tree_add_item_hidden(si, hf_artnet_output_data_filter, tvb,
+ item = proto_tree_add_item(si, hf_artnet_output_data_filter, tvb,
offset, length, FALSE );
+ PROTO_ITEM_SET_HIDDEN(item);
offset += length;
return offset;
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",
diff --git a/plugins/enttec/packet-enttec.c b/plugins/enttec/packet-enttec.c
index d8b3dc040f..0db1ae1d99 100644
--- a/plugins/enttec/packet-enttec.c
+++ b/plugins/enttec/packet-enttec.c
@@ -208,6 +208,7 @@ dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree)
static char string[255];
proto_tree *hi,*si;
+ proto_item *item;
guint16 length,r,c,row_count;
guint8 v,type,count;
guint16 ci,ui,i,start_offset,end_offset;
@@ -315,8 +316,9 @@ dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree)
ptr = string;
}
- proto_tree_add_item_hidden(si, hf_enttec_dmx_data_data_filter, tvb,
+ item = proto_tree_add_item(si, hf_enttec_dmx_data_data_filter, tvb,
offset, length, FALSE );
+ PROTO_ITEM_SET_HIDDEN(item);
offset += length;
} else if (type == ENTTEC_DATA_TYPE_CHAN_VAL) {