Home
last modified time | relevance | path

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

/external/iptables/extensions/
Dlibebt_ip6.c262 static struct in6_addr maskaddr; in parse_ip6_mask() local
268 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()
/external/iptables/libxtables/
Dxtables.c1434 uint32_t maskaddr, bits; in xtables_ipmask_to_cidr() local
1437 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() local
1596 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 …]
/external/iptables/iptables/
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()