Searched refs:ip_set_hostmask (Results 1 – 10 of 10) sorted by relevance
26 ip_set_hostmask(u8 pfxlen) in ip_set_hostmask() function41 from &= ip_set_hostmask(cidr); \42 to = from | ~ip_set_hostmask(cidr); \
177 if ((from & ip_set_hostmask(i)) != from) in ip_set_range_to_cidr()179 last = from | ~ip_set_hostmask(i); in ip_set_range_to_cidr()
64 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id()284 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()285 last_ip |= ~ip_set_hostmask(netmask); in bitmap_ip_create()
217 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netnet4_uadt()218 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netnet4_uadt()
251 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netportnet4_uadt()252 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netportnet4_uadt()
125 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt()
178 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
238 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
218 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
231 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()