diff --git a/TargetGroup.cc b/TargetGroup.cc index 2d75bf8d3..1686ff3e0 100644 --- a/TargetGroup.cc +++ b/TargetGroup.cc @@ -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)