Home
last modified time | relevance | path

Searched refs:first_ip (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/net/netfilter/ipset/
Dip_set_bitmap_ip.c44 u32 first_ip; /* host byte order, included in range */ member
64 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id()
100 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
106 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || in bitmap_ip_do_head()
124 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
157 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_uadt()
171 if (ip < map->first_ip) in bitmap_ip_uadt()
205 return x->first_ip == y->first_ip && in bitmap_ip_same_set()
223 u32 first_ip, u32 last_ip, in init_map_ip() argument
229 map->first_ip = first_ip; in init_map_ip()
[all …]
Dip_set_bitmap_ipmac.c50 u32 first_ip; /* host byte order, included in range */ member
75 return ip - m->first_ip; in ip_to_id()
199 htonl(map->first_ip + id)) || in bitmap_ipmac_do_list()
207 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || in bitmap_ipmac_do_head()
227 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
266 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
287 return x->first_ip == y->first_ip && in bitmap_ipmac_same_set()
301 u32 first_ip, u32 last_ip, u32 elements) in init_map_ipmac() argument
306 map->first_ip = first_ip; in init_map_ipmac()
322 u32 first_ip = 0, last_ip = 0; in bitmap_ipmac_create() local
[all …]