aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icmpv6.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-15 20:11:10 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-15 20:11:10 +0000
commitf4c930c8e228a759347c54b6532b20953b35d98c (patch)
treea3aae8282102b053074d271573f6d0765ea38c74 /packet-icmpv6.c
parentdf6fa9cc908b127022c2beca8daca04fb1996cfd (diff)
From Martti Kuparinen: update the HMIPv6 support to match the latest
draft (draft-ietf-mobileip-hmipv6-05.txt). svn path=/trunk/; revision=4546
Diffstat (limited to 'packet-icmpv6.c')
-rw-r--r--packet-icmpv6.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/packet-icmpv6.c b/packet-icmpv6.c
index 79bf87d232..f4e1abe734 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.61 2002/01/11 09:19:54 guy Exp $
+ * $Id: packet-icmpv6.c,v 1.62 2002/01/15 20:11:10 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -363,14 +363,11 @@ again:
map = &mapbuf;
tvb_memcpy(tvb, (guint8 *)map, offset, sizeof *map);
proto_tree_add_text(icmp6opt_tree, tvb,
- offset + offsetof(struct nd_opt_map_info, nd_opt_map_distance),
- 1, "Distance: %u", map->nd_opt_map_distance);
+ offset + offsetof(struct nd_opt_map_info, nd_opt_map_dist_and_pref),
+ 1, "Distance: %u", (map->nd_opt_map_dist_and_pref >> 4));
proto_tree_add_text(icmp6opt_tree, tvb,
- offset + offsetof(struct nd_opt_map_info, nd_opt_map_preference),
- 1, "Preference: %u", map->nd_opt_map_preference);
- proto_tree_add_text(icmp6opt_tree, tvb,
- offset + offsetof(struct nd_opt_map_info, nd_opt_map_prefixlen),
- 1, "Prefix Length: %u", map->nd_opt_map_prefixlen);
+ offset + offsetof(struct nd_opt_map_info, nd_opt_map_dist_and_pref),
+ 1, "Preference: %u", (map->nd_opt_map_dist_and_pref & 0x0F));
flagoff = offset + offsetof(struct nd_opt_map_info,
nd_opt_map_flags);
tf = proto_tree_add_text(icmp6opt_tree, tvb, flagoff, 1,
@@ -393,6 +390,9 @@ again:
proto_tree_add_text(field_tree, tvb, flagoff, 1, "%s",
decode_boolean_bitfield(map->nd_opt_map_flags,
ND_OPT_MAP_FLAG_P, 8, "P", "No P"));
+ proto_tree_add_text(field_tree, tvb, flagoff, 1, "%s",
+ decode_boolean_bitfield(map->nd_opt_map_flags,
+ ND_OPT_MAP_FLAG_V, 8, "V", "No V"));
proto_tree_add_text(icmp6opt_tree, tvb,
offset + offsetof(struct nd_opt_map_info, nd_opt_map_lifetime),
4, "Lifetime: %u", pntohl(&map->nd_opt_map_lifetime));