Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/netfilter/ipset/
H A Dpfxlen.h26 ip_set_hostmask(u8 pfxlen) in ip_set_hostmask() function
41 from &= ip_set_hostmask(cidr); \
42 to = from | ~ip_set_hostmask(cidr); \
/openbmc/linux/net/netfilter/ipset/
H A Dpfxlen.c178 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()
H A Dip_set_bitmap_ip.c61 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()
H A Dip_set_hash_netnet.c218 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()
H A Dip_set_hash_netportnet.c259 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()
H A Dip_set_hash_net.c175 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
H A Dip_set_hash_netiface.c242 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
H A Dip_set_hash_netport.c215 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
H A Dip_set_hash_ipportnet.c228 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()