aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icmpv6.c
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>1999-10-16 20:41:37 +0000
committerLaurent Deniel <laurent.deniel@free.fr>1999-10-16 20:41:37 +0000
commit1324570c43e1eb331f49bfe0bf6c21c746b1997a (patch)
tree2116c30804ede1436d2ee1b80c28f9f67e4a8491 /packet-icmpv6.c
parent6f0c90c1b8295bbb1f3887b670a7293b04af6ac7 (diff)
Replace proto_tree_add_item_format by proto_tree_add_item.
svn path=/trunk/; revision=865
Diffstat (limited to 'packet-icmpv6.c')
-rw-r--r--packet-icmpv6.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-icmpv6.c b/packet-icmpv6.c
index 0c6f40738c..08a3859e2d 100644
--- a/packet-icmpv6.c
+++ b/packet-icmpv6.c
@@ -1,7 +1,7 @@
/* packet-icmpv6.c
* Routines for ICMPv6 packet disassembly
*
- * $Id: packet-icmpv6.c,v 1.9 1999/10/12 06:20:07 gram Exp $
+ * $Id: packet-icmpv6.c,v 1.10 1999/10/16 20:41:37 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -354,10 +354,9 @@ dissect_icmpv6(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
dp->icmp6_code,
"Code: 0x%02x (%s)", dp->icmp6_code, codename);
}
- proto_tree_add_item_format(icmp6_tree, hf_icmpv6_checksum,
+ proto_tree_add_item(icmp6_tree, hf_icmpv6_checksum,
offset + offsetof(struct icmp6_hdr, icmp6_cksum), 2,
- (guint16)htons(dp->icmp6_cksum),
- "Checksum: 0x%04x", (guint16)htons(dp->icmp6_cksum));
+ (guint16)htons(dp->icmp6_cksum));
/* decode... */
switch (dp->icmp6_type) {