Home
last modified time | relevance | path

Searched refs:IPSET_ATTR_IP_TO (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/net/netfilter/ipset/
Dip_set_bitmap_ip.c107 nla_put_ipaddr4(skb, IPSET_ATTR_IP_TO, htonl(map->last_ip)) || in bitmap_ip_do_head()
165 if (tb[IPSET_ATTR_IP_TO]) { in bitmap_ip_uadt()
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in bitmap_ip_uadt()
262 if (tb[IPSET_ATTR_IP_TO]) { in bitmap_ip_create()
263 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &last_ip); in bitmap_ip_create()
341 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
349 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_ipmark.c130 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR])) { in hash_ipmark4_uadt()
136 if (tb[IPSET_ATTR_IP_TO]) { in hash_ipmark4_uadt()
137 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
242 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_ipmark6_uadt()
294 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_ipport.c151 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR] || in hash_ipport4_uadt()
158 if (tb[IPSET_ATTR_IP_TO]) { in hash_ipport4_uadt()
159 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipport4_uadt()
284 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_ipport6_uadt()
360 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_net.c177 if (adt == IPSET_TEST || !tb[IPSET_ATTR_IP_TO]) { in hash_net4_uadt()
185 if (tb[IPSET_ATTR_IP_TO]) { in hash_net4_uadt()
186 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_net4_uadt()
321 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_net6_uadt()
372 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_ip.c134 if (tb[IPSET_ATTR_IP_TO]) { in hash_ip4_uadt()
135 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ip4_uadt()
250 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_ip6_uadt()
296 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_ipportip.c158 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR] || in hash_ipportip4_uadt()
165 if (tb[IPSET_ATTR_IP_TO]) { in hash_ipportip4_uadt()
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportip4_uadt()
295 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_ipportip6_uadt()
374 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_netiface.c237 if (adt == IPSET_TEST || !tb[IPSET_ATTR_IP_TO]) { in hash_netiface4_uadt()
244 if (tb[IPSET_ATTR_IP_TO]) { in hash_netiface4_uadt()
245 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netiface4_uadt()
419 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_netiface6_uadt()
476 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_netnet.c215 if (adt == IPSET_TEST || !(tb[IPSET_ATTR_IP_TO] || in hash_netnet4_uadt()
225 if (tb[IPSET_ATTR_IP_TO]) { in hash_netnet4_uadt()
226 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netnet4_uadt()
414 if (unlikely(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_IP2_TO])) in hash_netnet6_uadt()
476 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_netport.c217 if (adt == IPSET_TEST || !(with_ports || tb[IPSET_ATTR_IP_TO])) { in hash_netport4_uadt()
230 if (tb[IPSET_ATTR_IP_TO]) { in hash_netport4_uadt()
231 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netport4_uadt()
393 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_netport6_uadt()
479 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_bitmap_ipmac.c208 nla_put_ipaddr4(skb, IPSET_ATTR_IP_TO, htonl(map->last_ip)); in bitmap_ipmac_do_head()
336 if (tb[IPSET_ATTR_IP_TO]) { in bitmap_ipmac_create()
337 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &last_ip); in bitmap_ipmac_create()
388 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_ipportnet.c228 !(tb[IPSET_ATTR_CIDR] || tb[IPSET_ATTR_IP_TO] || with_ports || in hash_ipportnet4_uadt()
238 if (tb[IPSET_ATTR_IP_TO]) { in hash_ipportnet4_uadt()
239 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportnet4_uadt()
434 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_ipportnet6_uadt()
531 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
Dip_set_hash_netportnet.c250 !(tb[IPSET_ATTR_IP_TO] || with_ports || tb[IPSET_ATTR_IP2_TO])) { in hash_netportnet4_uadt()
259 if (tb[IPSET_ATTR_IP_TO]) { in hash_netportnet4_uadt()
260 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netportnet4_uadt()
479 if (unlikely(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_IP2_TO])) in hash_netportnet6_uadt()
576 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
/Linux-v4.19/include/uapi/linux/netfilter/ipset/
Dip_set.h77 IPSET_ATTR_IP_TO, /* 2 */ enumerator