"Burton M. Strauss III" <[EMAIL PROTECTED]> writes:
> Bet a dollar to a donut that 2.6 doesn't support IPv6, so it's missing the
> header files.
>
> Here's what I have... (Linux)
>
> ipv6.h:
>
> #ifndef _IPV6_H
> #define _IPV6_H
>
> #include <linux/in6.h>
> #include <asm/byteorder.h>
> ...
>
> in6.h:
>
> ...
> struct in6_addr
> {
> union
> {
> __u8 u6_addr8[16];
> __u16 u6_addr16[8];
> __u32 u6_addr32[4];
> } in6_u;
> #define s6_addr in6_u.u6_addr8
> #define s6_addr16 in6_u.u6_addr16
> #define s6_addr32 in6_u.u6_addr32
> };
> ...
>
> sFlowPlugin.c has an ifdef, SFT_NEED_IN6ADDR, that does the define - see
> lines 161..174
>
> So, (opt1.patch) we could set SFT_NEED_IN6ADDR based on the absence of
> _IPV6_H (Linux) and _NETINET_IN6_H (Solaris 8) in ntop.h - or we could put
> it into ./configure (opt2.patch)...
>
> Preferences?? I think opt2 is cleaner provided it works under Solaris 2.6
> and 8 - neither of which I can test...
Sounds good. It's a long weekend here, I'll test it when I have access
to the box again.
--
Anthony David
Gambling(n): A discretionary tax on those asleep during high school maths
http://adavid.com.au/
0xA72CE1ED fingerprint = EA1E C69E FE59 BBE1 AA4B F354 BD09 9765 A72C E1ED
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop