/linux-6.1.9/net/xfrm/ |
D | xfrm_sysctl.c | 9 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 …]
|
D | xfrm_policy.c | 458 return __idx_hash(index, net->xfrm.policy_idx_hmask); in idx_hash() 468 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh() 469 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh() 473 *dbits = net->xfrm.policy_bydst[dir].dbits6; in __get_hash_thresh() 474 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh() 487 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() 498 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_bysel() 499 lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash; in policy_hash_bysel() 507 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() 515 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_direct() [all …]
|
D | xfrm_state.c | 36 rcu_dereference_protected((table), lockdep_is_held(&(net)->xfrm.xfrm_state_lock)) 64 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash() 72 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash() 79 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash() 84 return __xfrm_seq_hash(seq, net->xfrm.state_hmask); in xfrm_seq_hash() 131 struct net *net = container_of(work, struct net, xfrm.state_hash_work); in xfrm_hash_resize() 137 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize() 160 spin_lock_bh(&net->xfrm.xfrm_state_lock); in xfrm_hash_resize() 161 write_seqcount_begin(&net->xfrm.xfrm_state_hash_generation); in xfrm_hash_resize() 164 odst = xfrm_state_deref_prot(net->xfrm.state_bydst, net); in xfrm_hash_resize() [all …]
|
D | xfrm_user.c | 740 x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth; in xfrm_state_construct() 742 x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M; in xfrm_state_construct() 1261 struct sock *nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_nlmsg_multicast() 1321 lseq = read_seqbegin(&net->xfrm.policy_hthresh.lock); in build_spdinfo() 1323 spt4.lbits = net->xfrm.policy_hthresh.lbits4; in build_spdinfo() 1324 spt4.rbits = net->xfrm.policy_hthresh.rbits4; in build_spdinfo() 1325 spt6.lbits = net->xfrm.policy_hthresh.lbits6; in build_spdinfo() 1326 spt6.rbits = net->xfrm.policy_hthresh.rbits6; in build_spdinfo() 1327 } while (read_seqretry(&net->xfrm.policy_hthresh.lock, lseq)); in build_spdinfo() 1374 write_seqlock(&net->xfrm.policy_hthresh.lock); in xfrm_set_spdinfo() [all …]
|
D | xfrm_output.c | 494 struct xfrm_state *x = dst->xfrm; in xfrm_output_one() 571 x = dst->xfrm; in xfrm_output_one() 586 struct net *net = xs_net(skb_dst(skb)->xfrm); in xfrm_output_resume() 595 if (!skb_dst(skb)->xfrm) in xfrm_output_resume() 706 struct xfrm_state *x = skb_dst(skb)->xfrm; in xfrm_output()
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | xfrm_policy.sh | 39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 53 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 54 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block 108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block 113 …ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fw… 123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null [all …]
|
D | l2tp.sh | 234 run_cmd host-1 ip xfrm policy add \ 238 run_cmd host-1 ip xfrm policy add \ 242 run_cmd host-2 ip xfrm policy add \ 246 run_cmd host-2 ip xfrm policy add \ 250 ip -netns host-1 xfrm state add \ 255 ip -netns host-1 xfrm state add \ 260 ip -netns host-2 xfrm state add \ 265 ip -netns host-2 xfrm state add \ 273 run_cmd host-1 ip -6 xfrm policy add \ 277 run_cmd host-1 ip -6 xfrm policy add \ [all …]
|
D | vrf-xfrm-tests.sh | 202 ip -netns ${ns} xfrm ${x} flush 203 ip -6 -netns ${ns} xfrm ${x} flush 221 ip -netns host1 xfrm policy add \ 226 ip -netns host2 xfrm policy add \ 231 ip -netns host1 xfrm policy add \ 236 ip -netns host2 xfrm policy add \ 242 ip -6 -netns host1 xfrm policy add \ 247 ip -6 -netns host2 xfrm policy add \ 252 ip -6 -netns host1 xfrm policy add \ 257 ip -6 -netns host2 xfrm policy add \ [all …]
|
/linux-6.1.9/net/netfilter/ |
D | nft_xfrm.c | 182 for (i = 0; dst && dst->xfrm; in nft_xfrm_get_eval_out() 187 nft_xfrm_state_get_key(priv, regs, dst->xfrm); in nft_xfrm_get_eval_out() 261 const struct nft_xfrm *xfrm; in nft_xfrm_reduce() local 268 xfrm = nft_expr_priv(track->regs[priv->dreg].selector); in nft_xfrm_reduce() 269 if (priv->key != xfrm->key || in nft_xfrm_reduce() 270 priv->dreg != xfrm->dreg || in nft_xfrm_reduce() 271 priv->dir != xfrm->dir || in nft_xfrm_reduce() 272 priv->spnum != xfrm->spnum) { in nft_xfrm_reduce()
|
D | xt_policy.c | 90 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()
|
/linux-6.1.9/net/ipv6/ |
D | xfrm6_policy.c | 147 } while (xdst->u.dst.xfrm); in xfrm6_dst_ifdown() 188 .data = &init_net.xfrm.xfrm6_dst_ops.gc_thresh, 207 table[0].data = &net->xfrm.xfrm6_dst_ops.gc_thresh; in xfrm6_net_sysctl_init() 251 memcpy(&net->xfrm.xfrm6_dst_ops, &xfrm6_dst_ops_template, in xfrm6_net_init() 253 ret = dst_entries_init(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_init() 259 dst_entries_destroy(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_init() 267 dst_entries_destroy(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_exit()
|
D | xfrm6_output.c | 64 struct xfrm_state *x = dst->xfrm; in __xfrm6_output()
|
/linux-6.1.9/net/ipv4/ |
D | xfrm4_policy.c | 161 .data = &init_net.xfrm.xfrm4_dst_ops.gc_thresh, 180 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init() 224 memcpy(&net->xfrm.xfrm4_dst_ops, &xfrm4_dst_ops_template, in xfrm4_net_init() 226 ret = dst_entries_init(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init() 232 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init() 240 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_exit()
|
D | xfrm4_output.c | 20 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm4_output()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_tunnel.sh | 500 ip xfrm state add src 172.16.1.100 dst 172.16.1.200 proto esp \ 504 ip xfrm policy add src 10.1.1.100/32 dst 10.1.1.200/32 dir out \ 509 ip xfrm state add src 172.16.1.200 dst 172.16.1.100 proto esp \ 513 ip xfrm policy add src 10.1.1.200/32 dst 10.1.1.100/32 dir in \ 525 ip xfrm state add src 172.16.1.100 dst 172.16.1.200 proto esp \ 528 ip xfrm policy add src 10.1.1.100/32 dst 10.1.1.200/32 dir in \ 532 ip xfrm state add src 172.16.1.200 dst 172.16.1.100 proto esp \ 535 ip xfrm policy add src 10.1.1.200/32 dst 10.1.1.100/32 dir out \ 598 ip xfrm policy delete dir out src 10.1.1.200/32 dst 10.1.1.100/32 2> /dev/null 599 ip xfrm policy delete dir in src 10.1.1.100/32 dst 10.1.1.200/32 2> /dev/null [all …]
|
/linux-6.1.9/arch/x86/kvm/vmx/ |
D | sgx.c | 146 u64 attributes, xfrm, size; in __handle_encls_ecreate() local 160 xfrm = contents->xfrm; in __handle_encls_ecreate() 176 (u32)xfrm & ~sgx_12_1->ecx || in __handle_encls_ecreate() 177 (u32)(xfrm >> 32) & ~sgx_12_1->edx) { in __handle_encls_ecreate()
|
/linux-6.1.9/tools/testing/selftests/net/forwarding/ |
D | ip6_forward_instats_vrf.sh | 149 ip xfrm policy add dst 2001:1:2::2/128 dir fwd action block 152 ip xfrm policy del dst 2001:1:2::2/128 dir fwd
|
/linux-6.1.9/arch/x86/include/asm/ |
D | sgx.h | 158 u64 xfrm; member 354 u64 xfrm; member
|
/linux-6.1.9/include/net/ |
D | xfrm.h | 955 if (dst->xfrm || (dst->flags & DST_XFRM_QUEUE)) { in xfrm_dst_path() 967 if (dst->xfrm || (dst->flags & DST_XFRM_QUEUE)) { in xfrm_dst_child() 985 if (likely(xdst->u.dst.xfrm)) in xfrm_dst_destroy() 986 xfrm_state_put(xdst->u.dst.xfrm); in xfrm_dst_destroy() 1102 if (!net->xfrm.policy_count[dir] && !secpath_exists(skb)) in __xfrm_check_nopolicy() 1103 return net->xfrm.policy_default[dir] == XFRM_USERPOLICY_ACCEPT; in __xfrm_check_nopolicy() 1184 if (!net->xfrm.policy_count[XFRM_POLICY_OUT] && in xfrm_route_forward() 1185 net->xfrm.policy_default[XFRM_POLICY_OUT] == XFRM_USERPOLICY_ACCEPT) in xfrm_route_forward() 1769 nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_aevent_is_on() 1782 nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_acquire_is_on() [all …]
|
/linux-6.1.9/security/selinux/ |
D | Makefile | 13 selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
|
D | xfrm.c | 220 x = dst->xfrm; in selinux_xfrm_skb_sid_egress() 461 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
|
/linux-6.1.9/Documentation/networking/ |
D | secid.rst | 11 matching labeled xfrm(s).
|
/linux-6.1.9/tools/testing/selftests/netfilter/ |
D | nft_flowtable.sh | 510 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 511 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 514 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 516 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
|
/linux-6.1.9/net/core/ |
D | dst.c | 57 dst->xfrm = NULL; in dst_init() 109 if (dst->xfrm) { in dst_destroy()
|
/linux-6.1.9/net/ |
D | Makefile | 19 obj-$(CONFIG_XFRM) += xfrm/
|