Ethereal-dev: Re: [Ethereal-dev] Can't see IPv6 address in Windows, can in Linux?

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Mon, 28 Oct 2002 16:29:35 -0800
On Mon, Oct 28, 2002 at 04:08:18PM -0800, Guy Harris wrote:
> "ip6_to_str()" just calls "inet_ntop.c", which does a "switch" on the
> first argument.  I seem to remember seeing complaints about AF_INET6
> being redefined, so perhaps we're defining it ourselves in a header
> included by one of "epan/inet_ntop.c" and "epan/to_str.c" but not by
> both of them, so they're using different values for AF_INET6.

"inet_ntop.c" was including <winsock2.h>, but "to_str.c" - and
"resolv.c" - weren't.

I changed them to include it if it's present, as not doing so may have
caused them to have different values for AF_INET6.  I'll see if I can
reproduce the problem on my home Windows partition without the fix and,
if I can, see if that fixes it.