Home
last modified time | relevance | path

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

1234

/net/netfilter/
A Dnft_set_hash.c34 struct nft_set_ext ext; member
99 return &he->ext; in nft_rhash_lookup()
160 return &he->ext; in nft_rhash_update()
199 nft_clear(net, &he->ext); in nft_rhash_activate()
259 nft_set_elem_dead(&he->ext); in nft_rhash_delete()
299 struct nft_set_ext *ext) in nft_rhash_expr_needs_gc_run() argument
378 nft_set_elem_dead(&he->ext); in nft_rhash_gc()
501 struct nft_set_ext ext; member
519 return &he->ext; in nft_hash_lookup()
560 return &he->ext; in nft_hash_lookup_fast()
[all …]
A Dnft_set_rbtree.c28 struct nft_set_ext ext; member
46 return memcmp(nft_set_ext_key(&e1->ext), nft_set_ext_key(&e2->ext), in nft_rbtree_cmp()
52 return nft_set_elem_expired(&rbe->ext); in nft_rbtree_elem_expired()
100 return &rbe->ext; in __nft_rbtree_lookup()
108 return &interval->ext; in __nft_rbtree_lookup()
120 const struct nft_set_ext *ext; in nft_rbtree_lookup() local
124 return ext; in nft_rbtree_lookup()
131 return ext; in nft_rbtree_lookup()
151 this = nft_set_ext_key(&rbe->ext); in __nft_rbtree_get()
533 nft_clear(net, &rbe->ext); in nft_rbtree_activate()
[all …]
A Dnf_conntrack_extend.c103 if (ct->ext) { in nf_ct_ext_add()
104 const struct nf_ct_ext *old = ct->ext; in nf_ct_ext_add()
117 new = krealloc(ct->ext, alloc, gfp); in nf_ct_ext_add()
121 if (!ct->ext) { in nf_ct_ext_add()
130 ct->ext = new; in nf_ct_ext_add()
136 void *__nf_ct_ext_find(const struct nf_ct_ext *ext, u8 id) in __nf_ct_ext_find() argument
139 unsigned int this_id = READ_ONCE(ext->gen_id); in __nf_ct_ext_find()
141 if (!__nf_ct_ext_exist(ext, id)) in __nf_ct_ext_find()
144 if (this_id == 0 || ext->gen_id == gen_id) in __nf_ct_ext_find()
145 return (void *)ext + ext->offset[id]; in __nf_ct_ext_find()
A Dnft_set_bitmap.c18 struct nft_set_ext ext; member
105 if (memcmp(nft_set_ext_key(&be->ext), in nft_bitmap_elem_find()
106 nft_set_ext_key(&this->ext), set->klen) || in nft_bitmap_elem_find()
107 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_elem_find()
125 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_get()
164 nft_bitmap_location(set, nft_set_ext_key(&be->ext), &idx, &off); in nft_bitmap_remove()
179 nft_bitmap_location(set, nft_set_ext_key(&be->ext), &idx, &off); in nft_bitmap_activate()
182 nft_clear(net, &be->ext); in nft_bitmap_activate()
197 nft_set_elem_change_active(net, set, &be->ext); in nft_bitmap_flush()
217 nft_set_elem_change_active(net, set, &be->ext); in nft_bitmap_deactivate()
[all …]
A Dnft_dynset.c30 const struct nft_set_ext *ext) in nft_dynset_expr_setup() argument
32 struct nft_set_elem_expr *elem_expr = nft_set_ext_expr(ext); in nft_dynset_expr_setup()
52 struct nft_set_ext *ext; in nft_dynset_new() local
67 ext = nft_set_elem_ext(set, elem_priv); in nft_dynset_new()
68 if (priv->num_exprs && nft_dynset_expr_setup(priv, ext) < 0) in nft_dynset_new()
86 const struct nft_set_ext *ext; in nft_dynset_eval() local
94 ext = set->ops->update(set, &regs->data[priv->sreg_key], expr, regs); in nft_dynset_eval()
95 if (ext) { in nft_dynset_eval()
97 nft_set_ext_exists(ext, NFT_SET_EXT_TIMEOUT) && in nft_dynset_eval()
98 READ_ONCE(nft_set_ext_timeout(ext)->timeout) != 0) { in nft_dynset_eval()
[all …]
A Dnft_lookup.c66 const struct nft_set_ext *ext; in nft_lookup_eval() local
69 ext = nft_set_do_lookup(net, set, &regs->data[priv->sreg]); in nft_lookup_eval()
70 found = !!ext ^ priv->invert; in nft_lookup_eval()
72 ext = nft_set_catchall_lookup(net, set); in nft_lookup_eval()
73 if (!ext) { in nft_lookup_eval()
79 if (ext) { in nft_lookup_eval()
82 nft_set_ext_data(ext), set->dlen); in nft_lookup_eval()
84 nft_set_elem_update_expr(ext, regs, pkt); in nft_lookup_eval()
/net/netfilter/ipset/
A Dip_set_hash_ipmark.c87 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark4_kadt() local
93 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt()
103 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark4_uadt() local
118 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt()
129 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
159 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
228 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark6_kadt()
238 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark6_uadt() local
260 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark6_uadt()
268 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark6_uadt()
[all …]
A Dip_set_hash_ip.c87 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt() local
96 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt()
106 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip4_uadt() local
120 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip4_uadt()
130 return adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt()
160 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 …]
A Dip_set_hash_ipmac.c90 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmac4_kadt() local
106 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmac4_kadt()
115 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmac4_uadt() local
133 ip_set_get_extensions(set, tb, &ext); in hash_ipmac4_uadt()
140 return adtfn(set, &e, &ext, &ext, flags); in hash_ipmac4_uadt()
206 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmac6_kadt() local
222 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmac6_kadt()
234 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmac6_uadt() local
252 ip_set_get_extensions(set, tb, &ext); in hash_ipmac6_uadt()
260 return adtfn(set, &e, &ext, &ext, flags); in hash_ipmac6_uadt()
A Dip_set_hash_net.c122 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net4_kadt() local
132 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net4_kadt()
142 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_net4_uadt() local
157 ret = ip_set_get_extensions(set, tb, &ext); in hash_net4_uadt()
176 ret = adtfn(set, &e, &ext, &ext, flags); in hash_net4_uadt()
202 ret = adtfn(set, &e, &ext, &ext, flags); in hash_net4_uadt()
296 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net6_kadt() local
306 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net6_kadt()
315 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_net6_uadt() local
331 ret = ip_set_get_extensions(set, tb, &ext); in hash_net6_uadt()
[all …]
A Dip_set_hash_ipport.c97 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport4_kadt() local
108 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt()
118 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport4_uadt() local
135 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport4_uadt()
161 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt()
199 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt()
279 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport6_kadt()
289 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport6_uadt() local
314 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport6_uadt()
338 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport6_uadt()
[all …]
A Dip_set_hash_ipportip.c96 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip4_kadt() local
104 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip4_kadt()
114 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportip4_uadt() local
131 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip4_uadt()
157 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip4_uadt()
195 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip4_uadt()
274 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip6_kadt()
284 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportip6_uadt() local
309 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip6_uadt()
333 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip6_uadt()
[all …]
A Dip_set_hash_netport.c138 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport4_kadt() local
150 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport4_kadt()
160 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netport4_uadt() local
179 ret = ip_set_get_extensions(set, tb, &ext); in hash_netport4_uadt()
216 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport4_uadt()
255 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport4_uadt()
370 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport6_kadt()
380 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netport6_uadt() local
401 ret = ip_set_get_extensions(set, tb, &ext); in hash_netport6_uadt()
436 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport6_uadt()
[all …]
A Dip_set_list_set.c54 struct ip_set_ext *mext = &opt->ext; in list_set_ktest()
124 ret = list_set_ktest(set, skb, par, opt, &ext); in list_set_kadt()
127 ret = list_set_kadd(set, skb, par, opt, &ext); in list_set_kadt()
130 ret = list_set_kdel(set, skb, par, opt, &ext); in list_set_kadt()
225 ip_set_init_counter(ext_counter(e, set), ext); in list_set_init_extensions()
229 ip_set_init_skbinfo(ext_skbinfo(e, set), ext); in list_set_init_extensions()
271 list_set_init_extensions(set, ext, n); in list_set_uadd()
303 list_set_init_extensions(set, ext, e); in list_set_uadd()
356 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in list_set_uadt() local
367 ret = ip_set_get_extensions(set, tb, &ext); in list_set_uadt()
[all …]
A Dip_set_hash_ipportnet.c143 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet4_kadt() local
156 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet4_kadt()
166 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportnet4_uadt() local
186 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet4_uadt()
229 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet4_uadt()
291 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet4_uadt()
413 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet6_kadt()
423 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportnet6_uadt() local
450 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet6_uadt()
490 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet6_uadt()
[all …]
A Dip_set_hash_netiface.c167 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface4_kadt() local
194 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface4_kadt()
204 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netiface4_uadt() local
220 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface4_uadt()
243 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netiface4_uadt()
270 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netiface4_uadt()
388 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface6_kadt() local
413 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface6_kadt()
422 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netiface6_uadt() local
439 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface6_uadt()
[all …]
A Dip_set_hash_netnet.c150 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet4_kadt() local
162 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet4_kadt()
172 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet4_uadt() local
193 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet4_uadt()
220 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt()
269 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt()
389 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet6_kadt() local
406 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet6_kadt()
415 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet6_uadt() local
437 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet6_uadt()
[all …]
A Dip_set_hash_netportnet.c158 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet4_kadt() local
174 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet4_kadt()
194 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netportnet4_uadt() local
218 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet4_uadt()
261 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet4_uadt()
323 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet4_uadt()
469 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet6_kadt()
479 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netportnet6_uadt() local
504 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet6_uadt()
546 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet6_uadt()
[all …]
A Dip_set_hash_mac.c78 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_mac4_kadt() local
91 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_mac4_kadt()
100 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_mac4_uadt() local
110 ret = ip_set_get_extensions(set, tb, &ext); in hash_mac4_uadt()
117 return adtfn(set, &e, &ext, &ext, flags); in hash_mac4_uadt()
A Dip_set_bitmap_port.c134 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_port_kadt() local
149 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_port_kadt()
159 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in bitmap_port_uadt() local
174 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_port_uadt()
180 return adtfn(set, &e, &ext, &ext, flags); in bitmap_port_uadt()
199 ret = adtfn(set, &e, &ext, &ext, flags); in bitmap_port_uadt()
A Dip_set_bitmap_gen.h116 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test() argument
126 return ip_set_match_extensions(set, ext, mext, flags, x); in mtype_test()
130 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument
155 mtype_add_timeout(ext_timeout(x, set), e, ext, set, map, ret); in mtype_add()
157 ip_set_timeout_set(ext_timeout(x, set), ext->timeout); in mtype_add()
161 ip_set_init_counter(ext_counter(x, set), ext); in mtype_add()
163 ip_set_init_comment(set, ext_comment(x, set), ext); in mtype_add()
165 ip_set_init_skbinfo(ext_skbinfo(x, set), ext); in mtype_add()
175 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument
/net/ipv4/
A Dipconfig.c926 for (c=ext+2; c<ext+2+ext[1]; c++) in ic_do_bootp_ext()
951 ic_bootp_string(utsname()->nodename, ext+1, *ext, in ic_do_bootp_ext()
958 ic_bootp_string(ic_domain, ext+1, *ext, sizeof(ic_domain)); in ic_do_bootp_ext()
962 ic_bootp_string(root_server_path, ext+1, *ext, in ic_do_bootp_ext()
970 ic_bootp_string(utsname()->domainname, ext+1, *ext, in ic_do_bootp_ext()
1077 u8 *ext; in ic_bootp_recv() local
1085 while (ext < end && *ext != 0xff) { in ic_bootp_recv()
1089 ext += *ext + 1; in ic_bootp_recv()
1148 while (ext < end && *ext != 0xff) { in ic_bootp_recv()
1152 ext += *ext + 1; in ic_bootp_recv()
[all …]
/net/sctp/
A Dstream_sched_prio.c76 if (!SCTP_SO(stream, i)->ext) in sctp_sched_prio_get_head()
79 p = SCTP_SO(stream, i)->ext->prio_head; in sctp_sched_prio_get_head()
167 struct sctp_stream_out_ext *soute = sout->ext; in sctp_sched_prio_set()
191 *value = SCTP_SO(stream, sid)->ext->prio_head->prio; in sctp_sched_prio_get()
205 INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->prio_list); in sctp_sched_prio_init_sid()
212 SCTP_SO(stream, sid)->ext->prio_head = NULL; in sctp_sched_prio_free_sid()
225 sctp_sched_prio_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_prio_enqueue()
243 soute = stream->out_curr->ext; in sctp_sched_prio_dequeue()
267 soute = SCTP_SO(&q->asoc->stream, sid)->ext; in sctp_sched_prio_dequeue_done()
288 if (sout->ext) in sctp_sched_prio_sched_all()
[all …]
A Dstream_sched_fc.c30 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_wfq_set()
42 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_wfq_get()
70 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_fc_init_sid()
108 sctp_sched_fc_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_fc_enqueue()
123 soute = stream->out_curr->ext; in sctp_sched_fc_dequeue()
140 soute = SCTP_SO(stream, sid)->ext; in sctp_sched_fc_dequeue_done()
144 pos = SCTP_SO(stream, i)->ext; in sctp_sched_fc_dequeue_done()
178 if (SCTP_SO(stream, sid)->ext) in sctp_sched_fc_sched_all()
179 sctp_sched_fc_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_fc_sched_all()
A Dstream_sched.c68 ch = list_entry(stream->out_curr->ext->outq.next, in sctp_sched_fcfs_dequeue()
139 soute = SCTP_SO(stream, i)->ext; in sctp_sched_free_sched()
170 if (!SCTP_SO(&asoc->stream, i)->ext) in sctp_sched_set_sched()
212 if (!SCTP_SO(&asoc->stream, sid)->ext) { in sctp_sched_set_value()
229 if (!SCTP_SO(&asoc->stream, sid)->ext) in sctp_sched_get_value()
267 struct sctp_stream_out_ext *ext = SCTP_SO(stream, sid)->ext; in sctp_sched_init_sid() local
269 INIT_LIST_HEAD(&ext->outq); in sctp_sched_init_sid()

Completed in 610 milliseconds

1234