1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Fix initializer for struct in6_addr on AIX

This commit is contained in:
dmiller
2014-09-09 01:59:08 +00:00
parent 48dfb446d2
commit e6659f1d90

View File

@@ -548,8 +548,13 @@ static void ipv6_or_mask(struct in6_addr *a, const struct in6_addr *mask, const
}
void NetBlockIPv6Netmask::apply_netmask(int bits) {
#ifdef _AIX
const struct in6_addr zeros = { { { 0x00, 0x00, 0x00, 0x00 } } };
const struct in6_addr ones = { { { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff } } };
#else
const struct in6_addr zeros = { { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} } };
const struct in6_addr ones = { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} } };
#endif
struct in6_addr mask;
if (bits > 128)