[jdev] Small windows incompatibility in jabberd2 resolver\dns.c

Tim Anderson tima at predator-software.com
Thu Apr 7 16:32:46 CDT 2005

As far as funcionality goes, I still haven't tried it to see if it works.
But from a pure compiling perspective this:

for(i = 0; i < 4; i++)
    sa6.sin6_addr.s6_addr32[i] = data->Ip6Address.IP6Dword[i];

should probably be this:

for(i = 0; i < 16; i++)
    sa6.sin6_addr.s6_addr[i] = data->Ip6Address.IP6Byte[i];

As some of the more obscure #define/union stuff doesn't appear to be
declared in my current ws2tcpip.h. I can't wrap my wee brain around
everyone's fascination with using obscure #define/union expansions so I'm
assuming my substition is at least functionally correct. Am I possibly using
the wrong version of ws2tcpip.h? This doesn't create some evil byte order
swapping nonsense does it?


More information about the JDev mailing list