Searched refs:maskaddr (Results 1 – 3 of 3) sorted by relevance
262 static struct in6_addr maskaddr; in parse_ip6_mask() local268 memset(&maskaddr, 0xff, sizeof maskaddr); in parse_ip6_mask()269 return &maskaddr; in parse_ip6_mask()276 char *p = (char *)&maskaddr; in parse_ip6_mask()280 return &maskaddr; in parse_ip6_mask()283 memset(&maskaddr, 0, sizeof maskaddr); in parse_ip6_mask()284 return &maskaddr; in parse_ip6_mask()
1434 uint32_t maskaddr, bits; in xtables_ipmask_to_cidr() local1437 maskaddr = ntohl(mask->s_addr); in xtables_ipmask_to_cidr()1439 if (maskaddr == 0xFFFFFFFFL) in xtables_ipmask_to_cidr()1444 while (--i >= 0 && maskaddr != bits) in xtables_ipmask_to_cidr()1590 static struct in_addr maskaddr; in parse_ipmask() local1596 maskaddr.s_addr = 0xFFFFFFFF; in parse_ipmask()1597 return &maskaddr; in parse_ipmask()1606 maskaddr.s_addr = htonl(0xFFFFFFFF << (32 - bits)); in parse_ipmask()1607 return &maskaddr; in parse_ipmask()1610 maskaddr.s_addr = 0U; in parse_ipmask()[all …]
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()