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); \
178 if ((from & ip_set_hostmask(i)) != from) in ip_set_range_to_cidr()180 last = from | ~ip_set_hostmask(i); in ip_set_range_to_cidr()
61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id()293 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create()294 last_ip |= ~ip_set_hostmask(netmask); in bitmap_ip_create()
214 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netnet4_uadt()215 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netnet4_uadt()
247 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netportnet4_uadt()248 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netportnet4_uadt()
121 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt()
174 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
214 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
241 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
227 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()