I will go ahead and put in Jun's ipv6 code and modify it for use with my
new proto_*() functions. Jun: will the ipv6 code work well enough for you
if I get rid of the OS-dependencies in the header files? Specifically, in
your last patch, you have configure.in still looking for OS-supplied ipv6
headers and packet-ipsec.c does a complicated little dance like this:
#ifdef __KAME__
#include <sys/socket.h>
#include <net/route.h>
struct mbuf;
#include <netinet6/ipsec.h>
#include <netinet6/ah.h>
#include <netinet6/esp.h>
#else
struct newah {
u_int8_t ah_nxt; /* Next Header */
u_int8_t ah_len; /* Length of data + 1, in 32bit */
...
}
Can I get rid of the #ifdef __KAME__ clause and just use the structs that
are defined in packet-ipsec.c? I'll go ahead and convert them to glib
fields like guint8.
It's best to supply ethereal with all necessary structs for ipv6 and ipsec
decoding, so that ethereal built on any OS can decode these protocols, even
if the box that is running ethereal doesn't support these protocols.
I'll continue with the work of merging your code, but please let me know if
the changes that I want to make will hinder the usefulness of the code to
you.
thanks,
--gilbert