aboutsummaryrefslogtreecommitdiffstats
path: root/packet-mrdisc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-16 05:16:58 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-16 05:16:58 +0000
commit3c91e2e203855cf290ba0495ca130bfc96f0f848 (patch)
treef69005a62bb0392c20abfb3cf5d0975c57c1a073 /packet-mrdisc.c
parent04c530b2def5a06f92aecbc16ca698a84b6811cd (diff)
Convert a bunch of "proto_tree_add_bytes(tree, hf, tvb, offset, length,
tvb_get_ptr(tvb, offset, length))" calls to "proto_tree_add_item()" calls. Do the same, in "packet-iscsi.c" and "packet-mrdisc.c", for "proto_tree_add_uint()" and "proto_tree_add_boolean()" calls. svn path=/trunk/; revision=3726
Diffstat (limited to 'packet-mrdisc.c')
-rw-r--r--packet-mrdisc.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/packet-mrdisc.c b/packet-mrdisc.c
index 6a4456daaa..a2ea14bb7e 100644
--- a/packet-mrdisc.c
+++ b/packet-mrdisc.c
@@ -1,7 +1,7 @@
/* packet-mrdisc.c 2001 Ronnie Sahlberg <rsahlber@bigpond.net.au>
* Routines for IGMP/MRDISC packet disassembly
*
- * $Id: packet-mrdisc.c,v 1.1 2001/06/27 20:19:19 guy Exp $
+ * $Id: packet-mrdisc.c,v 1.2 2001/07/16 05:16:57 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -116,8 +116,7 @@ dissect_mrdisc_mra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, i
guint16 num;
/* Advertising Interval */
- proto_tree_add_uint(parent_tree, hf_advint, tvb,
- offset, 1, tvb_get_guint8(tvb, offset));
+ proto_tree_add_item(parent_tree, hf_advint, tvb, offset, 1, FALSE);
offset += 1;
/* checksum */
@@ -160,8 +159,8 @@ dissect_mrdisc_mra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, i
tvb_get_ntohs(tvb, offset));
}
- proto_tree_add_uint(tree, hf_qi, tvb, offset, len,
- tvb_get_ntohs(tvb, offset));
+ proto_tree_add_item(tree, hf_qi, tvb, offset, len,
+ FALSE);
offset += len;
break;
case MRDISC_RV:
@@ -171,8 +170,8 @@ dissect_mrdisc_mra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, i
tvb_get_ntohs(tvb, offset));
}
- proto_tree_add_uint(tree, hf_rv, tvb, offset, len,
- tvb_get_ntohs(tvb, offset));
+ proto_tree_add_item(tree, hf_rv, tvb, offset, len,
+ FALSE);
offset += len;
break;
default:
@@ -180,8 +179,8 @@ dissect_mrdisc_mra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, i
proto_item_set_text(item,"Option: unknown");
}
- proto_tree_add_bytes(tree, hf_option_bytes,
- tvb, offset, len, tvb_get_ptr(tvb, offset, len));
+ proto_tree_add_item(tree, hf_option_bytes,
+ tvb, offset, len, FALSE);
offset += len;
}
if (item) {