Ethereal-dev: [Ethereal-dev] a small packet-icmpv6.c fix

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Martti Kuparinen <martti.kuparinen@xxxxxx>
Date: Wed, 9 Jan 2002 16:34:10 +0200 (EET)
Hi!

Here's a patch to fix the lifetime in HMIPv6.

Martti

---
Martti Kuparinen <martti.kuparinen@xxxxxx>      NetBSD - No media hype
http://www.iki.fi/~kuparine/                    http://www.netbsd.org/



--- packet-icmpv6.c.orig	Wed Jan  9 15:29:12 2002
+++ packet-icmpv6.c	Wed Jan  9 15:29:36 2002
@@ -366,22 +366,22 @@
 	field_tree = proto_item_add_subtree(tf, ett_icmpv6flag);
 	proto_tree_add_text(field_tree, tvb, flagoff, 1, "%s",
 	    decode_boolean_bitfield(map->nd_opt_map_flags,
-		ND_OPT_MAP_FLAG_R, 8, "R", ""));
+		ND_OPT_MAP_FLAG_R, 8, "R", "No R"));
 	proto_tree_add_text(field_tree, tvb, flagoff, 1, "%s",
 	    decode_boolean_bitfield(map->nd_opt_map_flags,
-		ND_OPT_MAP_FLAG_M, 8, "M", ""));
+		ND_OPT_MAP_FLAG_M, 8, "M", "No M"));
 	proto_tree_add_text(field_tree, tvb, flagoff, 1, "%s",
 	    decode_boolean_bitfield(map->nd_opt_map_flags,
-		ND_OPT_MAP_FLAG_I, 8, "I", ""));
+		ND_OPT_MAP_FLAG_I, 8, "I", "No I"));
 	proto_tree_add_text(field_tree, tvb, flagoff, 1, "%s",
 	    decode_boolean_bitfield(map->nd_opt_map_flags,
-		ND_OPT_MAP_FLAG_T, 8, "T", ""));
+		ND_OPT_MAP_FLAG_T, 8, "T", "No T"));
 	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", ""));
+		ND_OPT_MAP_FLAG_P, 8, "P", "No P"));
 	proto_tree_add_text(icmp6opt_tree, tvb,
 	    offset + offsetof(struct nd_opt_map_info, nd_opt_map_lifetime),
-	    4, "Lifetime: %d", pntohs(&map->nd_opt_map_lifetime));
+	    4, "Lifetime: %d", pntohl(&map->nd_opt_map_lifetime));

 	proto_tree_add_text(icmp6opt_tree, tvb,
 	    offset + offsetof(struct nd_opt_map_info, nd_opt_map_address), 16,