/net/netfilter/ |
D | nf_conntrack_core.c | 583 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() local 586 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc() 587 if (!tmpl) in nf_ct_tmpl_alloc() 590 p = tmpl; in nf_ct_tmpl_alloc() 591 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 592 if (tmpl != p) { in nf_ct_tmpl_alloc() 593 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 594 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc() 597 tmpl = kzalloc(sizeof(*tmpl), flags); in nf_ct_tmpl_alloc() 598 if (!tmpl) in nf_ct_tmpl_alloc() [all …]
|
D | nft_dynset.c | 17 struct nft_set_ext_tmpl tmpl; member 59 elem = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new() 120 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPRESSIONS, in nft_dynset_ext_add_expr() 306 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init() 307 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init() 309 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init() 316 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init() 317 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); in nft_dynset_init()
|
D | nf_conntrack_proto_icmpv6.c | 133 nf_conntrack_icmpv6_redirect(struct nf_conn *tmpl, struct sk_buff *skb, in nf_conntrack_icmpv6_redirect() argument 178 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_redirect() 182 int nf_conntrack_icmpv6_error(struct nf_conn *tmpl, in nf_conntrack_icmpv6_error() argument 213 return nf_conntrack_icmpv6_redirect(tmpl, skb, dataoff, state); in nf_conntrack_icmpv6_error() 222 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_error()
|
D | nf_conntrack_proto_icmp.c | 106 int nf_conntrack_inet_error(struct nf_conn *tmpl, struct sk_buff *skb, in nf_conntrack_inet_error() argument 121 zone = nf_ct_zone_tmpl(tmpl, skb, &tmp); in nf_conntrack_inet_error() 204 int nf_conntrack_icmpv4_error(struct nf_conn *tmpl, in nf_conntrack_icmpv4_error() argument 246 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv4_error()
|
D | nf_conntrack_proto.c | 187 struct nf_conn *tmpl; in ipv4_conntrack_local() local 189 tmpl = nf_ct_get(skb, &ctinfo); in ipv4_conntrack_local() 190 if (tmpl && nf_ct_is_template(tmpl)) { in ipv4_conntrack_local() 195 nf_ct_put(tmpl); in ipv4_conntrack_local()
|
D | nf_conntrack_helper.c | 233 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, in __nf_ct_try_assign_helper() argument 249 if (tmpl != NULL) { in __nf_ct_try_assign_helper() 250 help = nfct_help(tmpl); in __nf_ct_try_assign_helper()
|
D | x_tables.c | 1239 struct xt_template *tmpl; in xt_find_table_lock() local 1248 list_for_each_entry(tmpl, &xt_templates[af], list) { in xt_find_table_lock() 1251 if (strcmp(tmpl->name, name)) in xt_find_table_lock() 1253 if (!try_module_get(tmpl->me)) in xt_find_table_lock() 1256 owner = tmpl->me; in xt_find_table_lock() 1259 err = tmpl->table_init(net); in xt_find_table_lock()
|
D | nf_synproxy_core.c | 352 snet->tmpl = ct; in synproxy_net_init() 376 nf_ct_put(snet->tmpl); in synproxy_net_exit() 552 synproxy_send_tcp(net, skb, nskb, &snet->tmpl->ct_general, IP_CT_NEW, in synproxy_send_server_syn() 966 synproxy_send_tcp_ipv6(net, skb, nskb, &snet->tmpl->ct_general, in synproxy_send_server_syn_ipv6()
|
D | nf_tables_api.c | 5823 const struct nft_set_ext_tmpl *tmpl, in nft_set_elem_init() argument 5830 elem = kzalloc(set->ops->elemsize + tmpl->len, gfp); in nft_set_elem_init() 5835 nft_set_ext_init(ext, tmpl); in nft_set_elem_init() 6163 struct nft_set_ext_tmpl tmpl; in nft_add_set_elem() local 6182 nft_set_ext_prepare(&tmpl); in nft_add_set_elem() 6193 err = nft_set_ext_add(&tmpl, NFT_SET_EXT_FLAGS); in nft_add_set_elem() 6320 err = nft_set_ext_add_length(&tmpl, NFT_SET_EXT_KEY, set->klen); in nft_add_set_elem() 6331 err = nft_set_ext_add_length(&tmpl, NFT_SET_EXT_KEY_END, set->klen); in nft_add_set_elem() 6337 err = nft_set_ext_add(&tmpl, NFT_SET_EXT_EXPIRATION); in nft_add_set_elem() 6342 err = nft_set_ext_add(&tmpl, NFT_SET_EXT_TIMEOUT); in nft_add_set_elem() [all …]
|
/net/sched/ |
D | act_ct.c | 761 if (params->tmpl) in tcf_ct_params_free() 762 nf_ct_put(params->tmpl); in tcf_ct_params_free() 948 struct nf_conn *tmpl = NULL; in tcf_ct_act() local 963 tmpl = p->tmpl; in tcf_ct_act() 1009 if (tmpl) { in tcf_ct_act() 1011 nf_conntrack_get(&tmpl->ct_general); in tcf_ct_act() 1012 nf_ct_set(skb, tmpl, IP_CT_NEW); in tcf_ct_act() 1172 struct nf_conn *tmpl; in tcf_ct_fill_params() local 1229 tmpl = nf_ct_tmpl_alloc(net, &zone, GFP_KERNEL); in tcf_ct_fill_params() 1230 if (!tmpl) { in tcf_ct_fill_params() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 325 struct ebt_template *tmpl; in find_inlist_lock_noload() local 334 list_for_each_entry(tmpl, &template_tables, list) { in find_inlist_lock_noload() 335 if (strcmp(name, tmpl->name) == 0) { in find_inlist_lock_noload() 336 struct module *owner = tmpl->owner; in find_inlist_lock_noload() 343 *error = tmpl->table_init(net); in find_inlist_lock_noload() 1294 struct ebt_template *tmpl; in ebt_register_template() local 1297 list_for_each_entry(tmpl, &template_tables, list) { in ebt_register_template() 1298 if (WARN_ON_ONCE(strcmp(t->name, tmpl->name) == 0)) { in ebt_register_template() 1304 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in ebt_register_template() 1305 if (!tmpl) { in ebt_register_template() [all …]
|
/net/xfrm/ |
D | xfrm_state.c | 916 const struct xfrm_tmpl *tmpl, in xfrm_init_tempstate() argument 929 x->id = tmpl->id; in xfrm_init_tempstate() 931 switch (tmpl->encap_family) { in xfrm_init_tempstate() 935 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate() 942 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate() 948 x->props.mode = tmpl->mode; in xfrm_init_tempstate() 949 x->props.reqid = tmpl->reqid; in xfrm_init_tempstate() 950 x->props.family = tmpl->encap_family; in xfrm_init_tempstate() 1071 const struct flowi *fl, struct xfrm_tmpl *tmpl, in xfrm_state_find() argument 1083 unsigned short encap_family = tmpl->encap_family; in xfrm_state_find() [all …]
|
D | xfrm_policy.c | 2377 struct xfrm_tmpl *tmpl = &policy->xfrm_vec[i]; in xfrm_tmpl_resolve_one() local 2379 if (tmpl->mode == XFRM_MODE_TUNNEL || in xfrm_tmpl_resolve_one() 2380 tmpl->mode == XFRM_MODE_BEET) { in xfrm_tmpl_resolve_one() 2381 remote = &tmpl->id.daddr; in xfrm_tmpl_resolve_one() 2382 local = &tmpl->saddr; in xfrm_tmpl_resolve_one() 2383 if (xfrm_addr_any(local, tmpl->encap_family)) { in xfrm_tmpl_resolve_one() 2386 tmpl->encap_family, 0); in xfrm_tmpl_resolve_one() 2393 x = xfrm_state_find(remote, local, fl, tmpl, policy, &error, in xfrm_tmpl_resolve_one() 2410 if (!tmpl->optional) in xfrm_tmpl_resolve_one() 3240 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, in xfrm_state_ok() argument [all …]
|
/net/core/ |
D | fib_notifier.c | 143 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() argument 148 ops = kmemdup(tmpl, sizeof(*ops), GFP_KERNEL); in fib_notifier_ops_register()
|
D | fib_rules.c | 164 fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net) in fib_rules_register() argument 169 ops = kmemdup(tmpl, sizeof(*ops), GFP_KERNEL); in fib_rules_register()
|
/net/mac80211/ |
D | tx.c | 5268 struct fils_discovery_data *tmpl = NULL; in ieee80211_get_fils_discovery_tmpl() local 5275 tmpl = rcu_dereference(sdata->u.ap.fils_discovery); in ieee80211_get_fils_discovery_tmpl() 5276 if (!tmpl) { in ieee80211_get_fils_discovery_tmpl() 5281 skb = dev_alloc_skb(sdata->local->hw.extra_tx_headroom + tmpl->len); in ieee80211_get_fils_discovery_tmpl() 5284 skb_put_data(skb, tmpl->data, tmpl->len); in ieee80211_get_fils_discovery_tmpl() 5297 struct unsol_bcast_probe_resp_data *tmpl = NULL; in ieee80211_get_unsol_bcast_probe_resp_tmpl() local 5304 tmpl = rcu_dereference(sdata->u.ap.unsol_bcast_probe_resp); in ieee80211_get_unsol_bcast_probe_resp_tmpl() 5305 if (!tmpl) { in ieee80211_get_unsol_bcast_probe_resp_tmpl() 5310 skb = dev_alloc_skb(sdata->local->hw.extra_tx_headroom + tmpl->len); in ieee80211_get_unsol_bcast_probe_resp_tmpl() 5313 skb_put_data(skb, tmpl->data, tmpl->len); in ieee80211_get_unsol_bcast_probe_resp_tmpl()
|
D | cfg.c | 874 if (!params->tmpl || !params->tmpl_len) in ieee80211_set_fils_discovery() 886 memcpy(new->data, params->tmpl, params->tmpl_len); in ieee80211_set_fils_discovery() 901 if (!params->tmpl || !params->tmpl_len) in ieee80211_set_unsol_bcast_probe_resp() 909 memcpy(new->data, params->tmpl, params->tmpl_len); in ieee80211_set_unsol_bcast_probe_resp()
|
/net/openvswitch/ |
D | conntrack.c | 965 struct nf_conn *tmpl = info->ct; in __ovs_ct_lookup() local 969 if (tmpl) { in __ovs_ct_lookup() 972 nf_conntrack_get(&tmpl->ct_general); in __ovs_ct_lookup() 973 nf_ct_set(skb, tmpl, IP_CT_NEW); in __ovs_ct_lookup()
|
/net/sunrpc/ |
D | cache.c | 1724 struct cache_detail *cache_create_net(const struct cache_detail *tmpl, struct net *net) in cache_create_net() argument 1729 cd = kmemdup(tmpl, sizeof(struct cache_detail), GFP_KERNEL); in cache_create_net()
|
/net/wireless/ |
D | nl80211.c | 5626 fd->tmpl = nla_data(tb[NL80211_FILS_DISCOVERY_ATTR_TMPL]); in nl80211_parse_fils_discovery() 5656 presp->tmpl = nla_data(tb[NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL]); in nl80211_parse_unsol_bcast_probe_resp()
|