Searched refs:ip_set_hostmask (Results 1 – 8 of 8) sorted by relevance
25 ip_set_hostmask(u8 pfxlen) in ip_set_hostmask() function40 from &= ip_set_hostmask(cidr); \41 to = from | ~ip_set_hostmask(cidr); \
302 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()
53 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()
156 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt()
221 data.ip = htonl(ip & ip_set_hostmask(data.cidr)); in hash_net4_uadt()
267 data.ip = htonl(ip & ip_set_hostmask(data.cidr + 1)); in hash_netport4_uadt()
278 data.ip2 = htonl(ip2_from & ip_set_hostmask(data.cidr + 1)); in hash_ipportnet4_uadt()
416 data.ip = htonl(ip & ip_set_hostmask(data.cidr)); in hash_netiface4_uadt()