Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/ipset/
Dip_set_hash_ipmark.c130 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR])) { in hash_ipmark4_uadt()
142 } else if (tb[IPSET_ATTR_CIDR]) { in hash_ipmark4_uadt()
143 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark4_uadt()
244 if (unlikely(tb[IPSET_ATTR_CIDR])) { in hash_ipmark6_uadt()
245 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark6_uadt()
296 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_net.c94 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr) || in hash_net4_data_list()
164 if (tb[IPSET_ATTR_CIDR]) { in hash_net4_uadt()
165 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_net4_uadt()
260 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr) || in hash_net6_data_list()
333 if (tb[IPSET_ATTR_CIDR]) { in hash_net6_uadt()
334 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_net6_uadt()
374 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_ipport.c151 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR] || in hash_ipport4_uadt()
164 } else if (tb[IPSET_ATTR_CIDR]) { in hash_ipport4_uadt()
165 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport4_uadt()
286 if (unlikely(tb[IPSET_ATTR_CIDR])) { in hash_ipport6_uadt()
287 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport6_uadt()
363 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_bitmap_ip.c173 } else if (tb[IPSET_ATTR_CIDR]) { in bitmap_ip_uadt()
174 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_uadt()
270 } else if (tb[IPSET_ATTR_CIDR]) { in bitmap_ip_create()
271 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_create()
344 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
352 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_ip.c141 } else if (tb[IPSET_ATTR_CIDR]) { in hash_ip4_uadt()
142 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ip4_uadt()
250 if (unlikely(tb[IPSET_ATTR_CIDR])) { in hash_ip6_uadt()
251 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ip6_uadt()
295 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_ipportip.c158 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR] || in hash_ipportip4_uadt()
171 } else if (tb[IPSET_ATTR_CIDR]) { in hash_ipportip4_uadt()
172 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip4_uadt()
297 if (unlikely(tb[IPSET_ATTR_CIDR])) { in hash_ipportip6_uadt()
298 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip6_uadt()
378 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_netnet.c112 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netnet4_data_list()
196 if (tb[IPSET_ATTR_CIDR]) { in hash_netnet4_uadt()
197 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet4_uadt()
343 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netnet6_data_list()
429 if (tb[IPSET_ATTR_CIDR]) { in hash_netnet6_uadt()
430 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet6_uadt()
479 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_netport.c108 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr + 1) || in hash_netport4_data_list()
186 if (tb[IPSET_ATTR_CIDR]) { in hash_netport4_uadt()
187 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netport4_uadt()
320 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr + 1) || in hash_netport6_data_list()
403 if (tb[IPSET_ATTR_CIDR]) { in hash_netport6_uadt()
404 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netport6_uadt()
482 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_netiface.c115 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr) || in hash_netiface4_data_list()
224 if (tb[IPSET_ATTR_CIDR]) { in hash_netiface4_uadt()
225 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netiface4_uadt()
341 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr) || in hash_netiface6_data_list()
435 if (tb[IPSET_ATTR_CIDR]) { in hash_netiface6_uadt()
436 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netiface6_uadt()
485 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_netportnet.c121 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netportnet4_data_list()
214 if (tb[IPSET_ATTR_CIDR]) { in hash_netportnet4_uadt()
215 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netportnet4_uadt()
396 nla_put_u8(skb, IPSET_ATTR_CIDR, data->cidr[0]) || in hash_netportnet6_data_list()
493 if (tb[IPSET_ATTR_CIDR]) { in hash_netportnet6_uadt()
494 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netportnet6_uadt()
580 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_hash_ipportnet.c228 !(tb[IPSET_ATTR_CIDR] || tb[IPSET_ATTR_IP_TO] || with_ports || in hash_ipportnet4_uadt()
244 } else if (tb[IPSET_ATTR_CIDR]) { in hash_ipportnet4_uadt()
245 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportnet4_uadt()
436 if (unlikely(tb[IPSET_ATTR_CIDR])) { in hash_ipportnet6_uadt()
437 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportnet6_uadt()
536 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
Dip_set_bitmap_ipmac.c342 } else if (tb[IPSET_ATTR_CIDR]) { in bitmap_ipmac_create()
343 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ipmac_create()
389 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
/linux-4.4.14/include/uapi/linux/netfilter/ipset/
Dip_set.h77 IPSET_ATTR_CIDR, /* 3 */ enumerator