Home
last modified time | relevance | path

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

/Linux-v6.6/net/netfilter/ipset/
Dip_set_bitmap_ip.c41 u32 first_ip; /* host byte order, included in range */ member
61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id()
97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
103 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || in bitmap_ip_do_head()
121 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
154 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_uadt()
168 if (ip < map->first_ip) in bitmap_ip_uadt()
202 return x->first_ip == y->first_ip && in bitmap_ip_same_set()
220 u32 first_ip, u32 last_ip, in init_map_ip() argument
226 map->first_ip = first_ip; in init_map_ip()
[all …]
Dip_set_bitmap_ipmac.c46 u32 first_ip; /* host byte order, included in range */ member
71 return ip - m->first_ip; in ip_to_id()
195 htonl(map->first_ip + id)) || in bitmap_ipmac_do_list()
203 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || in bitmap_ipmac_do_head()
219 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
265 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
286 return x->first_ip == y->first_ip && in bitmap_ipmac_same_set()
300 u32 first_ip, u32 last_ip, u32 elements) in init_map_ipmac() argument
305 map->first_ip = first_ip; in init_map_ipmac()
321 u32 first_ip = 0, last_ip = 0; in bitmap_ipmac_create() local
[all …]