Home
last modified time | relevance | path

Searched refs:maskaddr (Results 1 – 3 of 3) sorted by relevance

/external/iptables/libxtables/
Dxtables.c1252 uint32_t maskaddr, bits; in xtables_ipmask_to_cidr() local
1255 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() local
1418 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 …]
/external/iptables/iptables/
Dxtables-arp.c650 static struct in_addr maskaddr; in parse_mask() local
656 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()
Dnft-arp.c96 u_int32_t maskaddr, bits; in mask_to_dotted() local
98 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()