Home
last modified time | relevance | path

Searched refs:adt (Results 1 – 19 of 19) sorted by relevance

/net/netfilter/ipset/
Dip_set_hash_net.c114 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_net4_kadt() argument
117 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_net4_kadt()
125 if (adt == IPSET_TEST) in hash_net4_kadt()
136 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_net4_uadt() argument
139 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_net4_uadt()
173 if (adt == IPSET_TEST || !tb[IPSET_ATTR_IP_TO]) { in hash_net4_uadt()
176 return ip_set_enomatch(ret, flags, adt, set) ? -ret : in hash_net4_uadt()
282 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_net6_kadt() argument
285 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_net6_kadt()
293 if (adt == IPSET_TEST) in hash_net6_kadt()
[all …]
Dip_set_hash_ipmark.c81 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmark4_kadt() argument
84 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmark4_kadt()
97 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipmark4_uadt() argument
100 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmark4_uadt()
124 if (adt == IPSET_TEST || in hash_ipmark4_uadt()
207 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmark6_kadt() argument
210 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmark6_kadt()
223 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipmark6_uadt() argument
226 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmark6_uadt()
257 if (adt == IPSET_TEST) { in hash_ipmark6_uadt()
Dip_set_hash_ip.c79 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ip4_kadt() argument
82 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ip4_kadt()
98 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ip4_uadt() argument
101 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ip4_uadt()
126 if (adt == IPSET_TEST) in hash_ip4_uadt()
216 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ip6_kadt() argument
219 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ip6_kadt()
233 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ip6_uadt() argument
236 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ip6_uadt()
Dip_set_hash_netport.c130 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netport4_kadt() argument
133 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netport4_kadt()
139 if (adt == IPSET_TEST) in hash_netport4_kadt()
154 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_netport4_uadt() argument
157 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netport4_uadt()
213 if (adt == IPSET_TEST || !(with_ports || tb[IPSET_ATTR_IP_TO])) { in hash_netport4_uadt()
216 return ip_set_enomatch(ret, flags, adt, set) ? -ret : in hash_netport4_uadt()
346 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netport6_kadt() argument
349 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netport6_kadt()
355 if (adt == IPSET_TEST) in hash_netport6_kadt()
[all …]
Dip_set_hash_netiface.c153 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netiface4_kadt() argument
156 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netiface4_kadt()
163 if (adt == IPSET_TEST) in hash_netiface4_kadt()
193 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_netiface4_uadt() argument
196 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netiface4_uadt()
233 if (adt == IPSET_TEST || !tb[IPSET_ATTR_IP_TO]) { in hash_netiface4_uadt()
236 return ip_set_enomatch(ret, flags, adt, set) ? -ret : in hash_netiface4_uadt()
363 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netiface6_kadt() argument
366 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netiface6_kadt()
373 if (adt == IPSET_TEST) in hash_netiface6_kadt()
[all …]
Dip_set_hash_ipport.c89 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipport4_kadt() argument
91 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipport4_kadt()
105 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipport4_uadt() argument
108 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipport4_uadt()
146 if (adt == IPSET_TEST || in hash_ipport4_uadt()
247 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipport6_kadt() argument
249 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipport6_kadt()
263 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipport6_uadt() argument
266 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipport6_uadt()
312 if (adt == IPSET_TEST || !with_ports || !tb[IPSET_ATTR_PORT_TO]) { in hash_ipport6_uadt()
Dip_set_hash_ipmac.c86 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmac4_kadt() argument
88 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmac4_kadt()
111 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipmac4_uadt() argument
113 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmac4_uadt()
199 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmac6_kadt() argument
201 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmac6_kadt()
227 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipmac6_uadt() argument
229 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipmac6_uadt()
Dip_set_hash_netnet.c141 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netnet4_kadt() argument
144 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netnet4_kadt()
150 if (adt == IPSET_TEST) in hash_netnet4_kadt()
163 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_netnet4_uadt() argument
166 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netnet4_uadt()
212 if (adt == IPSET_TEST || !(tb[IPSET_ATTR_IP_TO] || in hash_netnet4_uadt()
217 return ip_set_enomatch(ret, flags, adt, set) ? -ret : in hash_netnet4_uadt()
375 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netnet6_kadt() argument
378 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netnet6_kadt()
384 if (adt == IPSET_TEST) in hash_netnet6_kadt()
[all …]
Dip_set_hash_ipportip.c91 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportip4_kadt() argument
93 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportip4_kadt()
108 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipportip4_uadt() argument
111 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportip4_uadt()
153 if (adt == IPSET_TEST || in hash_ipportip4_uadt()
257 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportip6_kadt() argument
259 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportip6_kadt()
274 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipportip6_uadt() argument
277 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportip6_uadt()
327 if (adt == IPSET_TEST || !with_ports || !tb[IPSET_ATTR_PORT_TO]) { in hash_ipportip6_uadt()
Dip_set_hash_ipportnet.c135 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportnet4_kadt() argument
138 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportnet4_kadt()
144 if (adt == IPSET_TEST) in hash_ipportnet4_kadt()
160 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_ipportnet4_uadt() argument
163 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportnet4_uadt()
223 if (adt == IPSET_TEST || in hash_ipportnet4_uadt()
229 return ip_set_enomatch(ret, flags, adt, set) ? -ret : in hash_ipportnet4_uadt()
386 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportnet6_kadt() argument
389 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_ipportnet6_kadt()
395 if (adt == IPSET_TEST) in hash_ipportnet6_kadt()
[all …]
Dip_set_hash_netportnet.c151 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netportnet4_kadt() argument
154 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netportnet4_kadt()
160 if (adt == IPSET_TEST) in hash_netportnet4_kadt()
177 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_netportnet4_uadt() argument
180 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netportnet4_uadt()
245 if (adt == IPSET_TEST || in hash_netportnet4_uadt()
250 return ip_set_enomatch(ret, flags, adt, set) ? -ret : in hash_netportnet4_uadt()
430 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netportnet6_kadt() argument
433 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_netportnet6_kadt()
439 if (adt == IPSET_TEST) in hash_netportnet6_kadt()
[all …]
Dip_set_hash_mac.c74 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_mac4_kadt() argument
76 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_mac4_kadt()
96 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in hash_mac4_uadt() argument
98 ipset_adtfn adtfn = set->variant->adt[adt]; in hash_mac4_uadt()
Dip_set_bitmap_port.c102 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_port_kadt() argument
105 ipset_adtfn adtfn = set->variant->adt[adt]; in bitmap_port_kadt()
127 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in bitmap_port_uadt() argument
130 ipset_adtfn adtfn = set->variant->adt[adt]; in bitmap_port_uadt()
151 if (adt == IPSET_TEST) { in bitmap_port_uadt()
Dip_set_bitmap_gen.h207 struct nlattr *adt, *nested; in mtype_list() local
212 adt = nla_nest_start(skb, IPSET_ATTR_ADT); in mtype_list()
213 if (!adt) in mtype_list()
232 nla_nest_cancel(skb, adt); in mtype_list()
245 nla_nest_end(skb, adt); in mtype_list()
258 nla_nest_end(skb, adt); in mtype_list()
294 .adt = {
Dip_set_bitmap_ip.c112 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_ip_kadt() argument
115 ipset_adtfn adtfn = set->variant->adt[adt]; in bitmap_ip_kadt()
131 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in bitmap_ip_uadt() argument
134 ipset_adtfn adtfn = set->variant->adt[adt]; in bitmap_ip_uadt()
157 if (adt == IPSET_TEST) { in bitmap_ip_uadt()
Dip_set_bitmap_ipmac.c210 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_ipmac_kadt() argument
213 ipset_adtfn adtfn = set->variant->adt[adt]; in bitmap_ipmac_kadt()
242 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in bitmap_ipmac_uadt() argument
245 ipset_adtfn adtfn = set->variant->adt[adt]; in bitmap_ipmac_uadt()
Dip_set_list_set.c116 enum ipset_adt adt, struct ip_set_adt_opt *opt) in list_set_kadt() argument
122 switch (adt) { in list_set_kadt()
347 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) in list_set_uadt() argument
350 ipset_adtfn adtfn = set->variant->adt[adt]; in list_set_uadt()
397 if (adt != IPSET_TEST && SET_WITH_TIMEOUT(set)) in list_set_uadt()
405 if (adt != IPSET_ADD || ret) in list_set_uadt()
551 .adt = {
Dip_set_core.c1517 struct nlattr *tb[], enum ipset_adt adt, in call_ad() argument
1526 ret = set->variant->uadt(set, tb, adt, &lineno, flags, retried); in call_ad()
1580 enum ipset_adt adt, in ip_set_ad() argument
1614 ret = call_ad(ctnl, skb, set, tb, adt, flags, in ip_set_ad()
1625 ret = call_ad(ctnl, skb, set, tb, adt, in ip_set_ad()
Dip_set_hash_gen.h1189 enum ipset_adt adt, struct ip_set_adt_opt *opt);
1193 enum ipset_adt adt, u32 *lineno, u32 flags,
1199 .adt = {