Searched refs:maskaddr (Results 1 – 3 of 3) sorted by relevance
1252 uint32_t maskaddr, bits; in xtables_ipmask_to_cidr() local1255 maskaddr = ntohl(mask->s_addr); in xtables_ipmask_to_cidr()1257 if (maskaddr == 0xFFFFFFFFL) in xtables_ipmask_to_cidr()1262 while (--i >= 0 && maskaddr != bits) in xtables_ipmask_to_cidr()1412 static struct in_addr maskaddr; in parse_ipmask() local1418 maskaddr.s_addr = 0xFFFFFFFF; in parse_ipmask()1419 return &maskaddr; in parse_ipmask()1428 maskaddr.s_addr = htonl(0xFFFFFFFF << (32 - bits)); in parse_ipmask()1429 return &maskaddr; in parse_ipmask()1432 maskaddr.s_addr = 0U; in parse_ipmask()[all …]
650 static struct in_addr maskaddr; in parse_mask() local656 maskaddr.s_addr = 0xFFFFFFFF; in parse_mask()657 return &maskaddr; in parse_mask()666 maskaddr.s_addr = htonl(0xFFFFFFFF << (32 - bits)); in parse_mask()667 return &maskaddr; in parse_mask()670 maskaddr.s_addr = 0L; in parse_mask()671 return &maskaddr; in parse_mask()
96 u_int32_t maskaddr, bits; in mask_to_dotted() local98 maskaddr = ntohl(mask->s_addr); in mask_to_dotted()100 if (maskaddr == 0xFFFFFFFFL) in mask_to_dotted()106 while (--i >= 0 && maskaddr != bits) in mask_to_dotted()