/linux-master/net/netfilter/ipset/ |
H A D | ip_set_hash_ip.c | 107 u32 ip = 0, ip_to = 0, hosts, i = 0; local 132 ip_to = ip; 134 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 137 if (ip > ip_to) { 138 if (ip_to == 0) 140 swap(ip, ip_to); 147 ip_set_mask_from_to(ip, ip_to, cidr); 154 for (; ip <= ip_to; i++) {
|
H A D | ip_set_hash_ipmark.c | 104 u32 ip, ip_to = 0, i = 0; local 133 ip_to = ip = ntohl(e.ip); 135 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 138 if (ip > ip_to) { 139 if (e.mark == 0 && ip_to == 0) 141 swap(ip, ip_to); 148 ip_set_mask_from_to(ip, ip_to, cidr); 153 for (; ip <= ip_to; ip++, i++) {
|
H A D | ip_set_hash_net.c | 143 u32 ip = 0, ip_to = 0, i = 0; local 181 ip_to = ip; 183 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 186 if (ip_to < ip) 187 swap(ip, ip_to); 188 if (ip + UINT_MAX == ip_to) 201 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); 207 } while (ip++ < ip_to);
|
H A D | ip_set_bitmap_ip.c | 135 u32 ip = 0, ip_to = 0; local 163 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 166 if (ip > ip_to) { 167 swap(ip, ip_to); 176 ip_set_mask_from_to(ip, ip_to, cidr); 178 ip_to = ip; 181 if (ip_to > map->last_ip) 184 for (; !before(ip_to, ip); ip += map->hosts) {
|
H A D | ip_set_hash_ipport.c | 119 u32 ip, ip_to = 0, p = 0, port, port_to, i = 0; local 165 ip_to = ip = ntohl(e.ip); 167 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 170 if (ip > ip_to) 171 swap(ip, ip_to); 177 ip_set_mask_from_to(ip, ip_to, cidr); 189 for (; ip <= ip_to; ip++) {
|
H A D | ip_set_hash_ipportip.c | 115 u32 ip, ip_to = 0, p = 0, port, port_to, i = 0; local 161 ip_to = ip = ntohl(e.ip); 163 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 166 if (ip > ip_to) 167 swap(ip, ip_to); 173 ip_set_mask_from_to(ip, ip_to, cidr); 185 for (; ip <= ip_to; ip++) {
|
H A D | ip_set_hash_netnet.c | 173 u32 ip = 0, ip_to = 0; local 225 ip_to = ip; 227 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 230 if (ip_to < ip) 231 swap(ip, ip_to); 232 if (unlikely(ip + UINT_MAX == ip_to)) 235 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); 260 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr[0]); 276 } while (ip++ < ip_to);
|
H A D | ip_set_hash_netportnet.c | 195 u32 ip = 0, ip_to = 0, p = 0, port, port_to; local 266 ip_to = ip; 268 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 271 if (ip > ip_to) 272 swap(ip, ip_to); 273 if (unlikely(ip + UINT_MAX == ip_to)) 276 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); 310 ip = hash_netportnet4_range_to_cidr(ip, ip_to, &e.cidr[0]); 332 } while (ip++ < ip_to);
|
H A D | ip_set_hash_netport.c | 161 u32 port, port_to, p = 0, ip = 0, ip_to = 0, i = 0; local 228 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 231 if (ip_to < ip) 232 swap(ip, ip_to); 233 if (ip + UINT_MAX == ip_to) 236 ip_set_mask_from_to(ip, ip_to, e.cidr + 1); 247 ip = ip_set_range_to_cidr(ip, ip_to, &cidr); 262 } while (ip++ < ip_to);
|
H A D | ip_set_hash_netiface.c | 205 u32 ip = 0, ip_to = 0, i = 0; local 249 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 252 if (ip_to < ip) 253 swap(ip, ip_to); 254 if (ip + UINT_MAX == ip_to) 257 ip_set_mask_from_to(ip, ip_to, e.cidr); 269 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); 276 } while (ip++ < ip_to);
|
H A D | ip_set_hash_ipportnet.c | 167 u32 ip = 0, ip_to = 0, p = 0, port, port_to; local 234 ip_to = ip; 236 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 239 if (ip > ip_to) 240 swap(ip, ip_to); 246 ip_set_mask_from_to(ip, ip_to, cidr); 277 for (; ip <= ip_to; ip++) {
|