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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user