Ethereal-dev: Re: [Ethereal-dev] IPsec as plugin?

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

From: Jochen Friedrich <jochen+ethereal@xxxxxxxx>
Date: Fri, 28 Feb 2003 08:37:58 +0100 (CET)
Hi Uwe,

> The problem is, that in packet-ipv6.c, there is a direct call to
>
> int
> dissect_ah_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
>                   guint8 *nxt_p, proto_tree **next_tree_p)
>
> which is in packet-ipsec.c. How can we solve this?

As ipsec is mandatory for IPv6 you only have 2 possibilities:

Not make ipsec a module :-)

Copy the most important bits from ipsec to IPv6 as fallback. Then use some
registration magic to overload the fallback with the ipsec dissector from
the module if the module is loaded (something like a dissector_table_t
ipv6_header_table; ).

Cheers,
--jochen