Searched refs:ip_set_hostmask (Results 1 – 9 of 9) 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()
218 e.ip[0] = htonl(ip & ntohl(h->bitmask.ip) & ip_set_hostmask(e.cidr[0])); in hash_netnet4_uadt()219 e.ip[1] = htonl(ip2_from & ntohl(h->bitmask.ip) & ip_set_hostmask(e.cidr[1])); in hash_netnet4_uadt()
259 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netportnet4_uadt()260 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netportnet4_uadt()
175 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
242 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
215 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
228 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()