IP_ABITS
wa.prefixlen = IP_ABITS;
maxv = IP_ABITS;
if (maxv == IP_ABITS)
val += IPV6_ABITS - IP_ABITS;
test_subnet_len = lifr.lifr_addrlen + (IPV6_ABITS - IP_ABITS);
IP_ABITS : IPV6_ABITS;
(af == AF_INET) ? IP_ABITS : IPV6_ABITS);
if (!in_prefixlentomask(prefixlen, IP_ABITS,
if (!in_prefixlentomask(prefixlen, IP_ABITS,
*plenp = in_getprefixlen(str, _B_TRUE, IP_ABITS);
if (!in_prefixlentomask(prefixlen, IP_ABITS,
if (plen > IP_ABITS) {
if (!in_prefixlentomask(masklen, IP_ABITS,
*plenp = in_getprefixlen(str, IP_ABITS);
#define IP_MASK_TABLE_SIZE (IP_ABITS + 1)
for (i = 0; i <= IP_ABITS; i++) {
return (htonl(RH_HOST_MASK << (IP_ABITS - masklen)));
for (i = 0; i <= IP_ABITS; i++) {
prefix_max = IP_ABITS;
prefix_max = IP_ABITS;
prefix_max = IP_ABITS;
prefix_max = IP_ABITS;
prefix_max = IP_ABITS;
case IP_ABITS:
if (prefixlen > IP_ABITS)
limit = IP_ABITS;
if ((af == AF_INET && prefixlen > IP_ABITS) ||
abits = (af == AF_INET ? IP_ABITS : IPV6_ABITS);
mask += ((IPV6_ABITS - IP_ABITS)/8);
limit = IP_ABITS;
if (nwam_valid_prefix(addr, IP_ABITS) != NWAM_SUCCESS) {
upper_lim = IP_ABITS;
for (bits = IP_ABITS; bits > 0 && (addr & 0xFF) == 0; bits -= 8)
for (bits = IP_ABITS; bits > 0 && addr < 0x01000000; bits -= 8)
#define IPV4_ABITS IP_ABITS
addrlen += IPV6_ABITS - IP_ABITS;
addrlen += IPV6_ABITS - IP_ABITS;
return (mask == 0 ? 0 : IP_ABITS - (ffs(ntohl(mask)) -1));
return (htonl(IP_HOST_MASK << (IP_ABITS - masklen)));
#define IP_MASK_TABLE_SIZE (IP_ABITS + 1) /* 33 ptrs */
insert_ipgpc_trie_list_info(IPGPC_TRIE_SADDRID, IP_ABITS, saddr_trie,
insert_ipgpc_trie_list_info(IPGPC_TRIE_DADDRID, IP_ABITS, daddr_trie,
IP_ABITS)) {
IP_ABITS)) {
IP_ABITS)) {
IP_ABITS)) {
uint8_t type_len = IP_ABITS;
uint8_t type_len = IP_ABITS;
uint8_t type_len = IP_ABITS;
if (rhent->rh_prefix < 0 || rhent->rh_prefix > IP_ABITS)
if (prefix < 0 || prefix > IP_ABITS)
return (masklen == 0 ? 0 : htonl(IP_HOST_MASK << (IP_ABITS - masklen)));