Home
last modified time | relevance | path

Searched refs:ip_set_hostmask (Results 1 – 8 of 8) sorted by relevance

/linux-3.4.99/include/linux/netfilter/ipset/
Dpfxlen.h25 ip_set_hostmask(u8 pfxlen) in ip_set_hostmask() function
40 from &= ip_set_hostmask(cidr); \
41 to = from | ~ip_set_hostmask(cidr); \
/linux-3.4.99/net/netfilter/ipset/
Dpfxlen.c302 if ((from & ip_set_hostmask(i)) != from) in ip_set_range_to_cidr()
304 last = from | ~ip_set_hostmask(i); in ip_set_range_to_cidr()
Dip_set_bitmap_ip.c53 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip)/m->hosts; in ip_to_id()
491 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()
492 last_ip |= ~ip_set_hostmask(netmask); in bitmap_ip_create()
Dip_set_hash_ip.c156 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt()
Dip_set_hash_net.c221 data.ip = htonl(ip & ip_set_hostmask(data.cidr)); in hash_net4_uadt()
Dip_set_hash_netport.c267 data.ip = htonl(ip & ip_set_hostmask(data.cidr + 1)); in hash_netport4_uadt()
Dip_set_hash_ipportnet.c278 data.ip2 = htonl(ip2_from & ip_set_hostmask(data.cidr + 1)); in hash_ipportnet4_uadt()
Dip_set_hash_netiface.c416 data.ip = htonl(ip & ip_set_hostmask(data.cidr)); in hash_netiface4_uadt()