Home
last modified time | relevance | path

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

/linux-4.1.27/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-4.1.27/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.c61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip)/m->hosts; in ip_to_id()
292 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()
293 last_ip |= ~ip_set_hostmask(netmask); in bitmap_ip_create()
Dip_set_hash_netnet.c213 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netnet4_uadt()
214 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netnet4_uadt()
Dip_set_hash_netportnet.c249 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netportnet4_uadt()
250 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netportnet4_uadt()
Dip_set_hash_ip.c129 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt()
Dip_set_hash_net.c181 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
Dip_set_hash_netport.c223 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
Dip_set_hash_netiface.c342 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
Dip_set_hash_ipportnet.c236 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()