/net/netfilter/ |
D | nft_set_hash.c | 34 struct nft_set_ext ext; member 54 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj() 63 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp() 65 if (nft_set_elem_is_dead(&he->ext)) in nft_rhash_cmp() 67 if (nft_set_elem_expired(&he->ext)) in nft_rhash_cmp() 69 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp() 83 const u32 *key, const struct nft_set_ext **ext) in nft_rhash_lookup() argument 95 *ext = &he->ext; in nft_rhash_lookup() 124 const struct nft_set_ext **ext) in nft_rhash_update() argument 155 *ext = &he->ext; in nft_rhash_update() [all …]
|
D | nft_set_rbtree.c | 30 struct nft_set_ext ext; member 35 return nft_set_ext_exists(&rbe->ext, NFT_SET_EXT_FLAGS) && in nft_rbtree_interval_end() 36 (*nft_set_ext_flags(&rbe->ext) & NFT_SET_ELEM_INTERVAL_END); in nft_rbtree_interval_end() 48 return memcmp(nft_set_ext_key(&e1->ext), nft_set_ext_key(&e2->ext), in nft_rbtree_cmp() 54 return nft_set_elem_expired(&rbe->ext) || in nft_rbtree_elem_expired() 55 nft_set_elem_is_dead(&rbe->ext); in nft_rbtree_elem_expired() 59 const u32 *key, const struct nft_set_ext **ext, in __nft_rbtree_lookup() argument 75 d = memcmp(nft_set_ext_key(&rbe->ext), key, set->klen); in __nft_rbtree_lookup() 87 if (!nft_set_elem_active(&rbe->ext, genmask)) { in __nft_rbtree_lookup() 103 *ext = &rbe->ext; in __nft_rbtree_lookup() [all …]
|
D | nft_set_bitmap.c | 17 struct nft_set_ext ext; member 77 const u32 *key, const struct nft_set_ext **ext) in nft_bitmap_lookup() argument 96 if (memcmp(nft_set_ext_key(&be->ext), in nft_bitmap_elem_find() 97 nft_set_ext_key(&this->ext), set->klen) || in nft_bitmap_elem_find() 98 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_elem_find() 114 if (memcmp(nft_set_ext_key(&be->ext), elem->key.val.data, set->klen) || in nft_bitmap_get() 115 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_get() 125 struct nft_set_ext **ext) in nft_bitmap_insert() argument 134 *ext = &be->ext; in nft_bitmap_insert() 138 nft_bitmap_location(set, nft_set_ext_key(&new->ext), &idx, &off); in nft_bitmap_insert() [all …]
|
D | nft_dynset.c | 51 struct nft_set_ext *ext; in nft_dynset_new() local 66 ext = nft_set_elem_ext(set, elem); in nft_dynset_new() 68 nft_expr_clone(nft_set_ext_expr(ext), priv->expr) < 0) in nft_dynset_new() 86 const struct nft_set_ext *ext; in nft_dynset_eval() local 96 expr, regs, &ext)) { in nft_dynset_eval() 98 if (nft_set_ext_exists(ext, NFT_SET_EXT_EXPR)) in nft_dynset_eval() 99 sexpr = nft_set_ext_expr(ext); in nft_dynset_eval() 102 nft_set_ext_exists(ext, NFT_SET_EXT_EXPIRATION)) { in nft_dynset_eval() 104 *nft_set_ext_expiration(ext) = get_jiffies_64() + timeout; in nft_dynset_eval()
|
D | nft_lookup.c | 32 const struct nft_set_ext *ext; in nft_lookup_eval() local 36 &ext) ^ priv->invert; in nft_lookup_eval() 44 nft_set_ext_data(ext), set->dlen); in nft_lookup_eval() 168 const struct nft_set_ext *ext = nft_set_elem_ext(set, elem->priv); in nft_lookup_validate_setelem() local 173 if (nft_set_ext_exists(ext, NFT_SET_EXT_FLAGS) && in nft_lookup_validate_setelem() 174 *nft_set_ext_flags(ext) & NFT_SET_ELEM_INTERVAL_END) in nft_lookup_validate_setelem() 177 data = nft_set_ext_data(ext); in nft_lookup_validate_setelem()
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipmark.c | 86 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark4_kadt() local 92 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt() 102 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark4_uadt() local 117 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt() 126 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt() 149 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt() 212 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark6_kadt() local 218 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark6_kadt() 228 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark6_uadt() local 250 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark6_uadt() [all …]
|
D | ip_set_hash_ip.c | 84 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt() local 93 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt() 103 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip4_uadt() local 117 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip4_uadt() 127 return adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt() 151 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt() 221 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip6_kadt() local 228 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip6_kadt() 238 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip6_uadt() local 259 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip6_uadt() [all …]
|
D | ip_set_hash_ipport.c | 93 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport4_kadt() local 100 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt() 110 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport4_uadt() local 127 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport4_uadt() 149 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt() 183 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt() 251 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport6_kadt() local 258 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport6_kadt() 268 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipport6_uadt() local 293 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport6_uadt() [all …]
|
D | ip_set_hash_ipportip.c | 95 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip4_kadt() local 103 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip4_kadt() 113 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportip4_uadt() local 130 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip4_uadt() 156 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip4_uadt() 190 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportip4_uadt() 261 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip6_kadt() local 269 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip6_kadt() 279 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportip6_uadt() local 304 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip6_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 | 121 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net4_kadt() local 131 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net4_kadt() 141 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_net4_uadt() local 156 ret = ip_set_get_extensions(set, tb, &ext); in hash_net4_uadt() 175 ret = adtfn(set, &e, &ext, &ext, flags); in hash_net4_uadt() 195 ret = adtfn(set, &e, &ext, &ext, flags); in hash_net4_uadt() 289 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net6_kadt() local 299 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net6_kadt() 308 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_net6_uadt() local 324 ret = ip_set_get_extensions(set, tb, &ext); in hash_net6_uadt() [all …]
|
D | ip_set_hash_netport.c | 137 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport4_kadt() local 149 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport4_kadt() 159 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netport4_uadt() local 178 ret = ip_set_get_extensions(set, tb, &ext); in hash_netport4_uadt() 215 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport4_uadt() 250 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netport4_uadt() 353 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport6_kadt() local 365 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport6_kadt() 375 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netport6_uadt() local 396 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_netiface.c | 161 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface4_kadt() local 188 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface4_kadt() 198 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netiface4_uadt() local 214 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface4_uadt() 235 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netiface4_uadt() 257 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netiface4_uadt() 371 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface6_kadt() local 396 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface6_kadt() 405 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netiface6_uadt() local 422 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface6_uadt() [all …]
|
D | ip_set_hash_ipportnet.c | 142 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet4_kadt() local 155 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet4_kadt() 165 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportnet4_uadt() local 185 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet4_uadt() 228 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet4_uadt() 284 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipportnet4_uadt() 393 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet6_kadt() local 406 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet6_kadt() 416 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipportnet6_uadt() local 443 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet6_uadt() [all …]
|
D | ip_set_hash_netnet.c | 146 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet4_kadt() local 158 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet4_kadt() 168 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet4_uadt() local 189 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet4_uadt() 216 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt() 260 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netnet4_uadt() 380 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet6_kadt() local 392 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet6_kadt() 401 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netnet6_uadt() local 422 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet6_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_hash_netportnet.c | 157 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet4_kadt() local 173 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet4_kadt() 183 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netportnet4_uadt() local 207 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet4_uadt() 250 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet4_uadt() 306 ret = adtfn(set, &e, &ext, &ext, flags); in hash_netportnet4_uadt() 436 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet6_kadt() local 452 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet6_kadt() 462 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_netportnet6_uadt() local 487 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet6_uadt() [all …]
|
D | ip_set_bitmap_port.c | 107 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_port_kadt() local 122 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_port_kadt() 132 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in bitmap_port_uadt() local 147 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_port_uadt() 153 return adtfn(set, &e, &ext, &ext, flags); in bitmap_port_uadt() 172 ret = adtfn(set, &e, &ext, &ext, flags); in bitmap_port_uadt()
|
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()
|
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_ipmac.c | 118 const struct ip_set_ext *ext, struct ip_set *set, in bitmap_ipmac_add_timeout() argument 121 u32 t = ext->timeout; in bitmap_ipmac_add_timeout() 215 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()
|
/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 | 890 static void __init ic_do_bootp_ext(u8 *ext) in ic_do_bootp_ext() argument 898 pr_debug("DHCP/BOOTP: Got extension %d:", *ext); in ic_do_bootp_ext() 899 for (c=ext+2; c<ext+2+ext[1]; c++) in ic_do_bootp_ext() 903 switch (*ext++) { in ic_do_bootp_ext() 906 memcpy(&ic_netmask, ext+1, 4); in ic_do_bootp_ext() 910 memcpy(&ic_gateway, ext+1, 4); in ic_do_bootp_ext() 913 servers= *ext/4; in ic_do_bootp_ext() 918 memcpy(&ic_nameservers[i], ext+1+4*i, 4); in ic_do_bootp_ext() 923 ic_bootp_string(utsname()->nodename, ext+1, *ext, in ic_do_bootp_ext() 930 ic_bootp_string(ic_domain, ext+1, *ext, sizeof(ic_domain)); in ic_do_bootp_ext() [all …]
|