diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-23 03:56:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-23 03:56:57 +0000 |
commit | 16a58c04d5085b4c1cff3decd87fdf1cdbbba912 (patch) | |
tree | 617d30b6df87cd3dc86ce29643c42e1d5590b777 /packet-pim.c | |
parent | 2bc2974c6e9b0e380912d7036a1b2b8ce0edb214 (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-pim.c')
-rw-r--r-- | packet-pim.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packet-pim.c b/packet-pim.c index 95ed0654c8..3e778e735d 100644 --- a/packet-pim.c +++ b/packet-pim.c @@ -2,7 +2,7 @@ * Routines for PIM disassembly * (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org> * - * $Id: packet-pim.c,v 1.25 2001/04/23 03:37:31 guy Exp $ + * $Id: packet-pim.c,v 1.26 2001/04/23 03:56:57 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -45,7 +45,6 @@ #include "packet.h" #include "packet-ip.h" -#include "packet-ipv6.h" #include "in_cksum.h" #define PIM_TYPE(x) ((x) & 0x0f) @@ -63,6 +62,7 @@ static int hf_pim_cksum = -1; static gint ett_pim = -1; static dissector_handle_t ip_handle; +static dissector_handle_t ipv6_handle; /* * Address family values. @@ -379,9 +379,9 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { break; case 6: /* IPv6 */ #if 0 - dissect_ipv6(next_tvb, pinfo, tree); + call_dissector(ipv6_handle, next_tvb, pinfo, tree); #else - dissect_ipv6(next_tvb, pinfo, pimopt_tree); + call_dissector(ipv6_handle, next_tvb, pinfo, pimopt_tree); #endif break; default: @@ -666,7 +666,8 @@ proto_reg_handoff_pim(void) dissector_add("ip.proto", IP_PROTO_PIM, dissect_pim, proto_pim); /* - * Get a handle for the IP dissector. + * Get handles for the IPv4 and IPv6 dissectors. */ ip_handle = find_dissector("ip"); + ipv6_handle = find_dissector("ipv6"); } |