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

/linux-master/include/linux/netfilter/ipset/
H A Dpfxlen.h26 ip_set_hostmask(u8 pfxlen) function
41 from &= ip_set_hostmask(cidr); \
42 to = from | ~ip_set_hostmask(cidr); \
/linux-master/net/netfilter/ipset/
H A Dip_set_bitmap_ip.c61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts;
293 first_ip &= ip_set_hostmask(netmask);
294 last_ip |= ~ip_set_hostmask(netmask);
H A Dpfxlen.c178 if ((from & ip_set_hostmask(i)) != from)
180 last = from | ~ip_set_hostmask(i);
H A Dip_set_hash_netnet.c218 e.ip[0] = htonl(ip & ntohl(h->bitmask.ip) & ip_set_hostmask(e.cidr[0]));
219 e.ip[1] = htonl(ip2_from & ntohl(h->bitmask.ip) & ip_set_hostmask(e.cidr[1]));
H A Dip_set_hash_netportnet.c259 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0]));
260 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1]));
H A Dip_set_hash_net.c175 e.ip = htonl(ip & ip_set_hostmask(e.cidr));
H A Dip_set_hash_ipportnet.c228 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1));
H A Dip_set_hash_netport.c215 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1));
H A Dip_set_hash_netiface.c242 e.ip = htonl(ip & ip_set_hostmask(e.cidr));

Completed in 142 milliseconds