/net/netfilter/ |
D | nft_set_hash.c | 31 struct nft_set_ext ext; member 51 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj() 60 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp() 62 if (nft_set_elem_is_dead(&he->ext)) in nft_rhash_cmp() 64 if (nft_set_elem_expired(&he->ext)) in nft_rhash_cmp() 66 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp() 81 const u32 *key, const struct nft_set_ext **ext) in nft_rhash_lookup() argument 93 *ext = &he->ext; in nft_rhash_lookup() 122 const struct nft_set_ext **ext) in nft_rhash_update() argument 153 *ext = &he->ext; in nft_rhash_update() [all …]
|
D | nft_set_rbtree.c | 27 struct nft_set_ext ext; member 32 return nft_set_ext_exists(&rbe->ext, NFT_SET_EXT_FLAGS) && in nft_rbtree_interval_end() 33 (*nft_set_ext_flags(&rbe->ext) & NFT_SET_ELEM_INTERVAL_END); in nft_rbtree_interval_end() 45 return memcmp(nft_set_ext_key(&e1->ext), nft_set_ext_key(&e2->ext), in nft_rbtree_cmp() 51 return nft_set_elem_expired(&rbe->ext) || in nft_rbtree_elem_expired() 52 nft_set_elem_is_dead(&rbe->ext); in nft_rbtree_elem_expired() 56 const u32 *key, const struct nft_set_ext **ext, in __nft_rbtree_lookup() argument 72 d = memcmp(nft_set_ext_key(&rbe->ext), key, set->klen); in __nft_rbtree_lookup() 84 if (!nft_set_elem_active(&rbe->ext, genmask)) { in __nft_rbtree_lookup() 100 *ext = &rbe->ext; in __nft_rbtree_lookup() [all …]
|
D | nft_set_bitmap.c | 17 struct nft_set_ext ext; member 78 const u32 *key, const struct nft_set_ext **ext) in nft_bitmap_lookup() argument 97 if (memcmp(nft_set_ext_key(&be->ext), in nft_bitmap_elem_find() 98 nft_set_ext_key(&this->ext), set->klen) || in nft_bitmap_elem_find() 99 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_elem_find() 115 if (memcmp(nft_set_ext_key(&be->ext), elem->key.val.data, set->klen) || in nft_bitmap_get() 116 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_get() 126 struct nft_set_ext **ext) in nft_bitmap_insert() argument 135 *ext = &be->ext; in nft_bitmap_insert() 139 nft_bitmap_location(set, nft_set_ext_key(&new->ext), &idx, &off); in nft_bitmap_insert() [all …]
|
D | nft_lookup.c | 28 const u32 *key, const struct nft_set_ext **ext) in nft_set_do_lookup() argument 31 return nft_hash_lookup_fast(net, set, key, ext); in nft_set_do_lookup() 33 return nft_hash_lookup(net, set, key, ext); in nft_set_do_lookup() 36 return nft_rhash_lookup(net, set, key, ext); in nft_set_do_lookup() 39 return nft_bitmap_lookup(net, set, key, ext); in nft_set_do_lookup() 42 return nft_pipapo_lookup(net, set, key, ext); in nft_set_do_lookup() 45 return nft_pipapo_avx2_lookup(net, set, key, ext); in nft_set_do_lookup() 49 return nft_rbtree_lookup(net, set, key, ext); in nft_set_do_lookup() 52 return set->ops->lookup(net, set, key, ext); in nft_set_do_lookup() 63 const struct nft_set_ext *ext = NULL; in nft_lookup_eval() local [all …]
|
D | nf_conntrack_extend.c | 38 kfree(ct->ext); in nf_ct_ext_destroy() 51 if (ct->ext) { in nf_ct_ext_add() 52 const struct nf_ct_ext *old = ct->ext; in nf_ct_ext_add() 73 new = krealloc(ct->ext, alloc, gfp); in nf_ct_ext_add() 77 if (!ct->ext) in nf_ct_ext_add() 84 ct->ext = new; in nf_ct_ext_add()
|
D | nft_set_pipapo.c | 409 const u32 *key, const struct nft_set_ext **ext) in nft_pipapo_lookup() argument 470 *ext = &f->mt[b].e->ext; in nft_pipapo_lookup() 471 if (unlikely(nft_set_elem_expired(*ext) || in nft_pipapo_lookup() 472 !nft_set_elem_active(*ext, genmask))) in nft_pipapo_lookup() 569 if (nft_set_elem_expired(&f->mt[b].e->ext)) in pipapo_get() 572 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get() 1193 const struct nft_set_ext *ext = nft_set_elem_ext(set, elem->priv); local 1204 if (nft_set_ext_exists(ext, NFT_SET_EXT_KEY_END)) 1205 end = (const u8 *)nft_set_ext_key_end(ext)->data; 1214 dup_key = nft_set_ext_key(&dup->ext); [all …]
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipmark.c | 87 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() 222 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark6_kadt() local 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() [all …]
|
D | ip_set_hash_ip.c | 85 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt() local 94 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt() 104 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip4_uadt() local 118 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip4_uadt() 128 return adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt() 158 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt() 227 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip6_kadt() local 234 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip6_kadt() 244 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip6_uadt() local 265 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip6_uadt() [all …]
|
D | ip_set_hash_ipport.c | 94 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport4_kadt() local 101 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt() 111 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport4_uadt() local 128 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport4_uadt() 150 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt() 188 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt() 256 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport6_kadt() local 263 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport6_kadt() 273 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport6_uadt() local 298 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport6_uadt() [all …]
|
D | ip_set_hash_ipmac.c | 90 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()
|
D | ip_set_hash_net.c | 122 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 …]
|
D | ip_set_hash_ipportip.c | 96 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() 266 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip6_kadt() local 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() [all …]
|
D | ip_set_hash_netport.c | 138 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() 358 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport6_kadt() local 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() [all …]
|
D | ip_set_list_set.c | 51 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_ktest() argument 54 struct ip_set_ext *mext = &opt->ext; in list_set_ktest() 67 if (ip_set_match_extensions(set, ext, mext, flags, e)) in list_set_ktest() 76 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_kadd() argument 96 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_kdel() argument 118 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in list_set_kadt() local 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() 185 list_set_utest(struct ip_set *set, void *value, const struct ip_set_ext *ext, in list_set_utest() argument [all …]
|
D | ip_set_hash_ipportnet.c | 143 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() 400 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet6_kadt() local 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() [all …]
|
D | ip_set_hash_netiface.c | 167 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 …]
|
D | ip_set_hash_netnet.c | 147 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet4_kadt() local 159 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet4_kadt() 169 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet4_uadt() local 190 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet4_uadt() 217 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt() 266 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt() 386 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet6_kadt() local 398 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet6_kadt() 407 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet6_uadt() local 428 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet6_uadt() [all …]
|
D | ip_set_hash_netportnet.c | 158 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() 453 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet6_kadt() local 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() [all …]
|
D | ip_set_hash_mac.c | 78 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()
|
D | ip_set_bitmap_port.c | 134 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()
|
D | ip_set_bitmap_gen.h | 114 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test() argument 124 return ip_set_match_extensions(set, ext, mext, flags, x); in mtype_test() 128 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument 153 mtype_add_timeout(ext_timeout(x, set), e, ext, set, map, ret); in mtype_add() 155 ip_set_timeout_set(ext_timeout(x, set), ext->timeout); in mtype_add() 159 ip_set_init_counter(ext_counter(x, set), ext); in mtype_add() 161 ip_set_init_comment(set, ext_comment(x, set), ext); in mtype_add() 163 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
|
D | ip_set_bitmap_ip.c | 117 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ip_kadt() local 126 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ip_kadt() 137 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in bitmap_ip_uadt() local 150 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_ip_uadt() 159 return adtfn(set, &e, &ext, &ext, flags); in bitmap_ip_uadt() 186 ret = adtfn(set, &e, &ext, &ext, flags); in bitmap_ip_uadt()
|
/net/sctp/ |
D | stream_sched_prio.c | 76 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() 211 sctp_sched_prio_head_put(SCTP_SO(stream, sid)->ext->prio_head); in sctp_sched_prio_free_sid() 212 SCTP_SO(stream, sid)->ext->prio_head = NULL; in sctp_sched_prio_free_sid() 229 if (!SCTP_SO(stream, i)->ext) in sctp_sched_prio_free() 231 prio = SCTP_SO(stream, i)->ext->prio_head; in sctp_sched_prio_free() 251 sctp_sched_prio_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_prio_enqueue() [all …]
|
D | stream_sched.c | 72 ch = list_entry(stream->out_curr->ext->outq.next, in sctp_sched_fcfs_dequeue() 154 void *p = SCTP_SO(&asoc->stream, i)->ext; in sctp_sched_set_sched() 168 if (!SCTP_SO(&asoc->stream, i)->ext) in sctp_sched_set_sched() 210 if (!SCTP_SO(&asoc->stream, sid)->ext) { in sctp_sched_set_value() 227 if (!SCTP_SO(&asoc->stream, sid)->ext) in sctp_sched_get_value() 265 struct sctp_stream_out_ext *ext = SCTP_SO(stream, sid)->ext; in sctp_sched_init_sid() local 267 INIT_LIST_HEAD(&ext->outq); in sctp_sched_init_sid()
|
/net/ipv4/ |
D | ipconfig.c | 906 static void __init ic_do_bootp_ext(u8 *ext) in ic_do_bootp_ext() argument 914 pr_debug("DHCP/BOOTP: Got extension %d:", *ext); in ic_do_bootp_ext() 915 for (c=ext+2; c<ext+2+ext[1]; c++) in ic_do_bootp_ext() 919 switch (*ext++) { in ic_do_bootp_ext() 922 memcpy(&ic_netmask, ext+1, 4); in ic_do_bootp_ext() 926 memcpy(&ic_gateway, ext+1, 4); in ic_do_bootp_ext() 929 servers= *ext/4; in ic_do_bootp_ext() 934 memcpy(&ic_nameservers[i], ext+1+4*i, 4); in ic_do_bootp_ext() 939 ic_bootp_string(utsname()->nodename, ext+1, *ext, in ic_do_bootp_ext() 946 ic_bootp_string(ic_domain, ext+1, *ext, sizeof(ic_domain)); in ic_do_bootp_ext() [all …]
|