(svn r15951) -Fix (r15946) [FS#2803]: ofcourse a couple of OSes/compilers do not provide a nice 'interface', so we have to do it the ugly way.

This commit is contained in:
rubidium 2009-04-04 08:48:12 +00:00
parent d5e4f8152f
commit 3ce836c4af

View File

@ -125,8 +125,8 @@ bool NetworkAddress::IsInNetmask(char *netmask)
break; break;
case AF_INET6: case AF_INET6:
ip = (uint32*)((struct sockaddr_in6*)&this->address)->sin6_addr.s6_addr32; ip = (uint32*)&((struct sockaddr_in6*)&this->address)->sin6_addr;
mask = (uint32*)((struct sockaddr_in6*)&mask_address.address)->sin6_addr.s6_addr32; mask = (uint32*)&((struct sockaddr_in6*)&mask_address.address)->sin6_addr;
break; break;
default: default: