Home
last modified time | relevance | path

Searched refs:ext (Results 1 – 25 of 42) sorted by relevance

12

/net/netfilter/
Dnft_set_rbtree.c29 struct nft_set_ext ext; member
34 return nft_set_ext_exists(&rbe->ext, NFT_SET_EXT_FLAGS) && in nft_rbtree_interval_end()
35 (*nft_set_ext_flags(&rbe->ext) & NFT_SET_ELEM_INTERVAL_END); in nft_rbtree_interval_end()
41 return memcmp(this, nft_set_ext_key(&interval->ext), set->klen) == 0; in nft_rbtree_equal()
45 const u32 *key, const struct nft_set_ext **ext) in nft_rbtree_lookup() argument
59 this = nft_set_ext_key(&rbe->ext); in nft_rbtree_lookup()
73 if (!nft_set_elem_active(&rbe->ext, genmask)) { in nft_rbtree_lookup()
81 *ext = &rbe->ext; in nft_rbtree_lookup()
87 nft_set_elem_active(&interval->ext, genmask) && in nft_rbtree_lookup()
90 *ext = &interval->ext; in nft_rbtree_lookup()
[all …]
Dnft_set_hash.c34 struct nft_set_ext ext; member
56 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_hash_obj()
65 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_hash_cmp()
67 if (nft_set_elem_expired(&he->ext)) in nft_hash_cmp()
69 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_hash_cmp()
75 const u32 *key, const struct nft_set_ext **ext) in nft_hash_lookup() argument
87 *ext = &he->ext; in nft_hash_lookup()
98 const struct nft_set_ext **ext) in nft_hash_update() argument
128 *ext = &he->ext; in nft_hash_update()
139 struct nft_set_ext **ext) in nft_hash_insert() argument
[all …]
Dnf_conntrack_extend.c26 struct nf_ct_ext *ext = ct->ext; in __nf_ct_ext_destroy() local
29 if (!__nf_ct_ext_exist(ext, i)) in __nf_ct_ext_destroy()
47 nf_ct_ext_create(struct nf_ct_ext **ext, enum nf_ct_ext_id id, in nf_ct_ext_create() argument
66 *ext = kzalloc(alloc_size, gfp); in nf_ct_ext_create()
67 if (!*ext) in nf_ct_ext_create()
70 (*ext)->offset[id] = off; in nf_ct_ext_create()
71 (*ext)->len = len; in nf_ct_ext_create()
73 return (void *)(*ext) + off; in nf_ct_ext_create()
86 old = ct->ext; in __nf_ct_ext_add_length()
88 return nf_ct_ext_create(&ct->ext, id, var_alloc_len, gfp); in __nf_ct_ext_add_length()
[all …]
Dnft_dynset.c35 struct nft_set_ext *ext; in nft_dynset_new() local
50 ext = nft_set_elem_ext(set, elem); in nft_dynset_new()
52 nft_expr_clone(nft_set_ext_expr(ext), priv->expr) < 0) in nft_dynset_new()
71 const struct nft_set_ext *ext; in nft_dynset_eval() local
76 expr, regs, &ext)) { in nft_dynset_eval()
78 if (nft_set_ext_exists(ext, NFT_SET_EXT_EXPR)) in nft_dynset_eval()
79 sexpr = nft_set_ext_expr(ext); in nft_dynset_eval()
82 nft_set_ext_exists(ext, NFT_SET_EXT_EXPIRATION)) { in nft_dynset_eval()
84 *nft_set_ext_expiration(ext) = jiffies + timeout; in nft_dynset_eval()
Dxt_set.c48 .ext.timeout = t, \
200 if (!match_counter0(opt.ext.packets, &info->packets)) in set_match_v3()
202 return match_counter0(opt.ext.bytes, &info->bytes); in set_match_v3()
247 if (!match_counter(opt.ext.packets, &info->packets)) in set_match_v4()
249 return match_counter(opt.ext.bytes, &info->bytes); in set_match_v4()
410 if (add_opt.ext.timeout != IPSET_NO_TIMEOUT && in set_target_v2()
411 add_opt.ext.timeout > UINT_MAX / MSEC_PER_SEC) in set_target_v2()
412 add_opt.ext.timeout = UINT_MAX / MSEC_PER_SEC; in set_target_v2()
440 if (add_opt.ext.timeout != IPSET_NO_TIMEOUT && in set_target_v3()
441 add_opt.ext.timeout > UINT_MAX / MSEC_PER_SEC) in set_target_v3()
[all …]
Dnf_tables_api.c3023 const struct nft_set_ext *ext = nft_set_elem_ext(set, elem->priv); in nf_tables_bind_check_setelem() local
3027 return nft_validate_register_store(ctx, dreg, nft_set_ext_data(ext), in nf_tables_bind_check_setelem()
3154 const struct nft_set_ext *ext = nft_set_elem_ext(set, elem->priv); in nf_tables_fill_setelem() local
3162 if (nft_data_dump(skb, NFTA_SET_ELEM_KEY, nft_set_ext_key(ext), in nf_tables_fill_setelem()
3166 if (nft_set_ext_exists(ext, NFT_SET_EXT_DATA) && in nf_tables_fill_setelem()
3167 nft_data_dump(skb, NFTA_SET_ELEM_DATA, nft_set_ext_data(ext), in nf_tables_fill_setelem()
3172 if (nft_set_ext_exists(ext, NFT_SET_EXT_EXPR) && in nf_tables_fill_setelem()
3173 nft_expr_dump(skb, NFTA_SET_ELEM_EXPR, nft_set_ext_expr(ext)) < 0) in nf_tables_fill_setelem()
3176 if (nft_set_ext_exists(ext, NFT_SET_EXT_FLAGS) && in nf_tables_fill_setelem()
3178 htonl(*nft_set_ext_flags(ext)))) in nf_tables_fill_setelem()
[all …]
Dnft_lookup.c35 const struct nft_set_ext *ext; in nft_lookup_eval() local
38 found = set->ops->lookup(pkt->net, set, &regs->data[priv->sreg], &ext) ^ in nft_lookup_eval()
48 nft_set_ext_data(ext), set->dlen); in nft_lookup_eval()
/net/netfilter/ipset/
Dip_set_hash_ipmark.c91 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark4_kadt() local
97 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt()
107 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark4_uadt() local
122 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt()
131 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
154 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
217 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark6_kadt() local
223 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark6_kadt()
233 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark6_uadt() local
255 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark6_uadt()
[all …]
Dip_set_hash_ip.c88 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt() local
97 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt()
107 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip4_uadt() local
121 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip4_uadt()
131 return adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt()
157 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt()
223 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip6_kadt() local
230 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip6_kadt()
240 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip6_uadt() local
261 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip6_uadt()
[all …]
Dip_set_hash_ipport.c97 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport4_kadt() local
104 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt()
114 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport4_uadt() local
131 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport4_uadt()
153 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt()
187 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt()
255 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport6_kadt() local
262 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport6_kadt()
272 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport6_uadt() local
297 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport6_uadt()
[all …]
Dip_set_hash_ipportip.c99 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip4_kadt() local
107 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip4_kadt()
117 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportip4_uadt() local
134 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip4_uadt()
160 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip4_uadt()
194 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip4_uadt()
265 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip6_kadt() local
273 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip6_kadt()
283 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportip6_uadt() local
308 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip6_uadt()
[all …]
Dip_set_list_set.c54 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_ktest() argument
73 ext, &opt->ext, in list_set_ktest()
77 ext, &opt->ext, in list_set_ktest()
88 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_kadd() argument
108 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_kdel() argument
130 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in list_set_kadt() local
136 ret = list_set_ktest(set, skb, par, opt, &ext); in list_set_kadt()
139 ret = list_set_kadd(set, skb, par, opt, &ext); in list_set_kadt()
142 ret = list_set_kdel(set, skb, par, opt, &ext); in list_set_kadt()
192 list_set_utest(struct ip_set *set, void *value, const struct ip_set_ext *ext, in list_set_utest() argument
[all …]
Dip_set_hash_net.c125 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net4_kadt() local
135 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net4_kadt()
145 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_net4_uadt() local
160 ret = ip_set_get_extensions(set, tb, &ext); in hash_net4_uadt()
179 ret = adtfn(set, &e, &ext, &ext, flags); in hash_net4_uadt()
199 ret = adtfn(set, &e, &ext, &ext, flags); in hash_net4_uadt()
294 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net6_kadt() local
304 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net6_kadt()
313 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_net6_uadt() local
329 ret = ip_set_get_extensions(set, tb, &ext); in hash_net6_uadt()
[all …]
Dip_set_hash_netport.c141 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport4_kadt() local
153 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport4_kadt()
163 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netport4_uadt() local
182 ret = ip_set_get_extensions(set, tb, &ext); in hash_netport4_uadt()
219 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport4_uadt()
252 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport4_uadt()
356 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport6_kadt() local
368 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport6_kadt()
378 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netport6_uadt() local
399 ret = ip_set_get_extensions(set, tb, &ext); in hash_netport6_uadt()
[all …]
Dip_set_hash_netiface.c165 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface4_kadt() local
192 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface4_kadt()
202 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netiface4_uadt() local
218 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface4_uadt()
239 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netiface4_uadt()
261 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netiface4_uadt()
376 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface6_kadt() local
401 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface6_kadt()
410 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netiface6_uadt() local
427 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface6_uadt()
[all …]
Dip_set_hash_ipportnet.c146 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet4_kadt() local
159 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet4_kadt()
169 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportnet4_uadt() local
189 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet4_uadt()
232 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet4_uadt()
289 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet4_uadt()
397 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet6_kadt() local
410 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet6_kadt()
420 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportnet6_uadt() local
447 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet6_uadt()
[all …]
Dip_set_hash_netnet.c149 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet4_kadt() local
161 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet4_kadt()
171 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet4_uadt() local
192 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet4_uadt()
219 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt()
262 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt()
383 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet6_kadt() local
395 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet6_kadt()
404 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet6_uadt() local
425 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet6_uadt()
[all …]
Dip_set_hash_mac.c85 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_mac4_kadt() local
98 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_mac4_kadt()
107 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_mac4_uadt() local
117 ret = ip_set_get_extensions(set, tb, &ext); in hash_mac4_uadt()
124 return adtfn(set, &e, &ext, &ext, flags); in hash_mac4_uadt()
Dip_set_hash_netportnet.c160 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet4_kadt() local
176 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet4_kadt()
186 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netportnet4_uadt() local
210 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet4_uadt()
253 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet4_uadt()
308 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet4_uadt()
438 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet6_kadt() local
454 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet6_kadt()
464 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netportnet6_uadt() local
489 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet6_uadt()
[all …]
Dip_set_bitmap_gen.h111 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test() argument
125 ip_set_update_counter(ext_counter(x, set), ext, mext, flags); in mtype_test()
127 ip_set_get_skbinfo(ext_skbinfo(x, set), ext, mext, flags); in mtype_test()
132 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument
154 mtype_add_timeout(ext_timeout(x, set), e, ext, set, map, ret); in mtype_add()
156 ip_set_timeout_set(ext_timeout(x, set), ext->timeout); in mtype_add()
160 ip_set_init_counter(ext_counter(x, set), ext); in mtype_add()
162 ip_set_init_comment(ext_comment(x, set), ext); in mtype_add()
164 ip_set_init_skbinfo(ext_skbinfo(x, set), ext); in mtype_add()
173 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument
Dip_set_bitmap_port.c110 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_port_kadt() local
125 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_port_kadt()
135 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in bitmap_port_uadt() local
150 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_port_uadt()
156 return adtfn(set, &e, &ext, &ext, flags); in bitmap_port_uadt()
175 ret = adtfn(set, &e, &ext, &ext, flags); in bitmap_port_uadt()
Dip_set_bitmap_ip.c119 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ip_kadt() local
128 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ip_kadt()
139 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in bitmap_ip_uadt() local
152 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_ip_uadt()
161 return adtfn(set, &e, &ext, &ext, flags); in bitmap_ip_uadt()
188 ret = adtfn(set, &e, &ext, &ext, flags); in bitmap_ip_uadt()
Dip_set_bitmap_ipmac.c121 const struct ip_set_ext *ext, struct ip_set *set, in bitmap_ipmac_add_timeout() argument
124 u32 t = ext->timeout; in bitmap_ipmac_add_timeout()
218 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ipmac_kadt() local
237 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ipmac_kadt()
247 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in bitmap_ipmac_uadt() local
261 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_ipmac_uadt()
275 ret = adtfn(set, &e, &ext, &ext, flags); in bitmap_ipmac_uadt()
Dip_set_hash_gen.h705 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument
825 ip_set_init_counter(ext_counter(data, set), ext); in mtype_add()
827 ip_set_init_comment(ext_comment(data, set), ext); in mtype_add()
829 ip_set_init_skbinfo(ext_skbinfo(data, set), ext); in mtype_add()
832 ip_set_timeout_set(ext_timeout(data, set), ext->timeout); in mtype_add()
852 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument
928 mtype_data_match(struct mtype_elem *data, const struct ip_set_ext *ext, in mtype_data_match() argument
933 ext, mext, flags); in mtype_data_match()
936 ext, mext, flags); in mtype_data_match()
946 const struct ip_set_ext *ext, in mtype_test_cidrs() argument
[all …]
/net/ipv4/
Dipconfig.c895 static void __init ic_do_bootp_ext(u8 *ext) in ic_do_bootp_ext() argument
903 pr_debug("DHCP/BOOTP: Got extension %d:", *ext); in ic_do_bootp_ext()
904 for (c=ext+2; c<ext+2+ext[1]; c++) in ic_do_bootp_ext()
908 switch (*ext++) { in ic_do_bootp_ext()
911 memcpy(&ic_netmask, ext+1, 4); in ic_do_bootp_ext()
915 memcpy(&ic_gateway, ext+1, 4); in ic_do_bootp_ext()
918 servers= *ext/4; in ic_do_bootp_ext()
923 memcpy(&ic_nameservers[i], ext+1+4*i, 4); in ic_do_bootp_ext()
927 ic_bootp_string(utsname()->nodename, ext+1, *ext, in ic_do_bootp_ext()
932 ic_bootp_string(ic_domain, ext+1, *ext, sizeof(ic_domain)); in ic_do_bootp_ext()
[all …]

12