aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipv6.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-23 03:56:57 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-23 03:56:57 +0000
commit16a58c04d5085b4c1cff3decd87fdf1cdbbba912 (patch)
tree617d30b6df87cd3dc86ce29643c42e1d5590b777 /packet-ipv6.c
parent2bc2974c6e9b0e380912d7036a1b2b8ce0edb214 (diff)
Now that the IPv6 dissector has been tvbuffified, we can register it; do
so, make it static, and call it only through a handle. In the ICMPv6 dissector, when we dissect the invoking packet in an ICMPv6 error or in a redirected header option, make the columns non-writable, so the summary line for the packet shows it as an ICMPv6 packet, not as the packet included in the ICMPv6 packet. svn path=/trunk/; revision=3361
Diffstat (limited to 'packet-ipv6.c')
-rw-r--r--packet-ipv6.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/packet-ipv6.c b/packet-ipv6.c
index e2be7afceb..7ece3f69f8 100644
--- a/packet-ipv6.c
+++ b/packet-ipv6.c
@@ -1,7 +1,7 @@
/* packet-ipv6.c
* Routines for IPv6 packet disassembly
*
- * $Id: packet-ipv6.c,v 1.55 2001/04/23 03:37:31 guy Exp $
+ * $Id: packet-ipv6.c,v 1.56 2001/04/23 03:56:57 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -611,7 +611,7 @@ dissect_dstopts(tvbuff_t *tvb, int offset, proto_tree *tree) {
return dissect_opts(tvb, offset, tree, "Destination Option");
}
-void
+static void
dissect_ipv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *ipv6_tree;
proto_item *ti;
@@ -923,15 +923,17 @@ proto_register_ipv6(void)
proto_ipv6 = proto_register_protocol("Internet Protocol Version 6", "IPv6", "ipv6");
proto_register_field_array(proto_ipv6, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ register_dissector("ipv6", dissect_ipv6, proto_ipv6);
}
void
proto_reg_handoff_ipv6(void)
{
- dissector_add("ethertype", ETHERTYPE_IPv6, dissect_ipv6, proto_ipv6);
- dissector_add("ppp.protocol", PPP_IPV6, dissect_ipv6, proto_ipv6);
- dissector_add("ip.proto", IP_PROTO_IPV6, dissect_ipv6, proto_ipv6);
- dissector_add("null.type", BSD_AF_INET6_BSD, dissect_ipv6, proto_ipv6);
- dissector_add("null.type", BSD_AF_INET6_FREEBSD, dissect_ipv6, proto_ipv6);
- dissector_add("ip.proto", IP_PROTO_NONE, dissect_ipv6_none, proto_ipv6);
+ dissector_add("ethertype", ETHERTYPE_IPv6, dissect_ipv6, proto_ipv6);
+ dissector_add("ppp.protocol", PPP_IPV6, dissect_ipv6, proto_ipv6);
+ dissector_add("ip.proto", IP_PROTO_IPV6, dissect_ipv6, proto_ipv6);
+ dissector_add("null.type", BSD_AF_INET6_BSD, dissect_ipv6, proto_ipv6);
+ dissector_add("null.type", BSD_AF_INET6_FREEBSD, dissect_ipv6, proto_ipv6);
+ dissector_add("ip.proto", IP_PROTO_NONE, dissect_ipv6_none, proto_ipv6);
}