Home
last modified time | relevance | path

Searched refs:cadt_flags (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/net/netfilter/ipset/
Dip_set_hash_netiface.c226 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netiface4_uadt() local
228 if (cadt_flags & IPSET_FLAG_PHYSDEV) in hash_netiface4_uadt()
230 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netiface4_uadt()
437 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netiface6_uadt() local
439 if (cadt_flags & IPSET_FLAG_PHYSDEV) in hash_netiface6_uadt()
441 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netiface6_uadt()
Dip_set_hash_net.c167 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_net4_uadt() local
169 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_net4_uadt()
337 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_net6_uadt() local
339 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_net6_uadt()
Dip_set_hash_netnet.c206 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netnet4_uadt() local
208 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netnet4_uadt()
442 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netnet6_uadt() local
444 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netnet6_uadt()
Dip_set_hash_netport.c207 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netport4_uadt() local
209 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netport4_uadt()
424 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netport6_uadt() local
426 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netport6_uadt()
Dip_set_hash_ipportnet.c216 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_ipportnet4_uadt() local
218 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_ipportnet4_uadt()
476 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_ipportnet6_uadt() local
478 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_ipportnet6_uadt()
Dip_set_hash_netportnet.c238 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netportnet4_uadt() local
240 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netportnet4_uadt()
521 u32 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in hash_netportnet6_uadt() local
523 if (cadt_flags & IPSET_FLAG_NOMATCH) in hash_netportnet6_uadt()
Dip_set_core.c374 u32 cadt_flags = 0; in ip_set_elem_len() local
377 cadt_flags = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); in ip_set_elem_len()
378 if (cadt_flags & IPSET_FLAG_WITH_FORCEADD) in ip_set_elem_len()
383 if (!add_extension(id, cadt_flags, tb)) in ip_set_elem_len()
/Linux-v5.4/include/linux/netfilter/ipset/
Dip_set.h280 u32 cadt_flags = 0; in ip_set_put_flags() local
287 cadt_flags |= IPSET_FLAG_WITH_COUNTERS; in ip_set_put_flags()
289 cadt_flags |= IPSET_FLAG_WITH_COMMENT; in ip_set_put_flags()
291 cadt_flags |= IPSET_FLAG_WITH_SKBINFO; in ip_set_put_flags()
293 cadt_flags |= IPSET_FLAG_WITH_FORCEADD; in ip_set_put_flags()
295 if (!cadt_flags) in ip_set_put_flags()
297 return nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(cadt_flags)); in ip_set_put_flags()