Home
last modified time | relevance | path

Searched refs:xfrm (Results 1 – 25 of 30) sorted by relevance

12

/net/xfrm/
Dxfrm_sysctl.c9 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; in __xfrm_sysctl_init()
10 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; in __xfrm_sysctl_init()
11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init()
12 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init()
53 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init()
54 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init()
55 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init()
56 table[3].data = &net->xfrm.sysctl_acq_expires; in xfrm_sysctl_init()
62 net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table); in xfrm_sysctl_init()
63 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init()
[all …]
Dxfrm_policy.c463 return __idx_hash(index, net->xfrm.policy_idx_hmask); in idx_hash()
473 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh()
474 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh()
478 *dbits = net->xfrm.policy_bydst[dir].dbits6; in __get_hash_thresh()
479 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh()
492 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel()
503 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_bysel()
504 lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash; in policy_hash_bysel()
512 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct()
520 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_direct()
[all …]
Dxfrm_state.c35 rcu_dereference_protected((table), lockdep_is_held(&(net)->xfrm.xfrm_state_lock))
63 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash()
71 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash()
78 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
119 struct net *net = container_of(work, struct net, xfrm.state_hash_work); in xfrm_hash_resize()
125 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize()
141 spin_lock_bh(&net->xfrm.xfrm_state_lock); in xfrm_hash_resize()
142 write_seqcount_begin(&net->xfrm.xfrm_state_hash_generation); in xfrm_hash_resize()
145 odst = xfrm_state_deref_prot(net->xfrm.state_bydst, net); in xfrm_hash_resize()
146 for (i = net->xfrm.state_hmask; i >= 0; i--) in xfrm_hash_resize()
[all …]
Dxfrm_user.c643 x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth; in xfrm_state_construct()
645 x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M; in xfrm_state_construct()
1106 struct sock *nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_nlmsg_multicast()
1166 lseq = read_seqbegin(&net->xfrm.policy_hthresh.lock); in build_spdinfo()
1168 spt4.lbits = net->xfrm.policy_hthresh.lbits4; in build_spdinfo()
1169 spt4.rbits = net->xfrm.policy_hthresh.rbits4; in build_spdinfo()
1170 spt6.lbits = net->xfrm.policy_hthresh.lbits6; in build_spdinfo()
1171 spt6.rbits = net->xfrm.policy_hthresh.rbits6; in build_spdinfo()
1172 } while (read_seqretry(&net->xfrm.policy_hthresh.lock, lseq)); in build_spdinfo()
1218 write_seqlock(&net->xfrm.policy_hthresh.lock); in xfrm_set_spdinfo()
[all …]
Dxfrm_output.c414 struct xfrm_state *x = dst->xfrm; in xfrm_output_one()
491 x = dst->xfrm; in xfrm_output_one()
506 struct net *net = xs_net(skb_dst(skb)->xfrm); in xfrm_output_resume()
515 if (!skb_dst(skb)->xfrm) in xfrm_output_resume()
569 struct xfrm_state *x = skb_dst(skb)->xfrm; in xfrm_output()
Dxfrm_device.c310 (!xdst->child->xfrm)) { in xfrm_dev_offload_ok()
Dxfrm_interface_core.c328 x = dst->xfrm; in xfrmi_xmit2()
/net/ipv6/
Dxfrm6_policy.c149 } while (xdst->u.dst.xfrm); in xfrm6_dst_ifdown()
190 .data = &init_net.xfrm.xfrm6_dst_ops.gc_thresh,
209 table[0].data = &net->xfrm.xfrm6_dst_ops.gc_thresh; in xfrm6_net_sysctl_init()
253 memcpy(&net->xfrm.xfrm6_dst_ops, &xfrm6_dst_ops_template, in xfrm6_net_init()
255 ret = dst_entries_init(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_init()
261 dst_entries_destroy(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_init()
269 dst_entries_destroy(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_exit()
Dxfrm6_output.c71 struct xfrm_state *x = dst->xfrm; in __xfrm6_output()
Dah6.c43 struct xfrm_skb_cb xfrm; member
293 struct xfrm_state *x = skb_dst(skb)->xfrm; in ah6_output_done()
Desp6.c43 struct xfrm_skb_cb xfrm; member
236 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
293 x = skb_dst(skb)->xfrm; in esp_output_done()
DKconfig161 encapsulating protocol. This can be used with xfrm mode tunnel to give
Dip6_vti.c497 x = dst->xfrm; in vti6_xmit()
/net/ipv4/
Dxfrm4_policy.c163 .data = &init_net.xfrm.xfrm4_dst_ops.gc_thresh,
182 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init()
226 memcpy(&net->xfrm.xfrm4_dst_ops, &xfrm4_dst_ops_template, in xfrm4_net_init()
228 ret = dst_entries_init(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init()
234 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init()
242 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_exit()
Dxfrm4_output.c20 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm4_output()
Dah4.c19 struct xfrm_skb_cb xfrm; member
125 struct xfrm_state *x = skb_dst(skb)->xfrm; in ah_output_done()
Desp4.c27 struct xfrm_skb_cb xfrm; member
220 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
260 x = skb_dst(skb)->xfrm; in esp_output_done()
Dip_vti.c223 if (!vti_state_check(dst->xfrm, parms->iph.daddr, parms->iph.saddr)) { in vti_xmit()
/net/netfilter/
Dxt_policy.c90 if (dst->xfrm == NULL) in match_policy_out()
93 for (i = 0; dst && dst->xfrm; in match_policy_out()
100 if (match_xfrm_state(dst->xfrm, e, family)) { in match_policy_out()
Dnft_xfrm.c180 for (i = 0; dst && dst->xfrm; in nft_xfrm_get_eval_out()
185 nft_xfrm_state_get_key(priv, regs, dst->xfrm); in nft_xfrm_get_eval_out()
Dnft_rt.c92 nft_reg_store8(dest, !!dst->xfrm); in nft_rt_get_eval()
Dnf_nat_core.c163 if (dst->xfrm) in nf_xfrm_me_harder()
/net/core/
Ddst.c58 dst->xfrm = NULL; in dst_init()
110 if (dst->xfrm) { in dst_destroy()
/net/
DMakefile20 obj-$(CONFIG_XFRM) += xfrm/
DKconfig66 source "net/xfrm/Kconfig"

12