/openbmc/linux/net/xfrm/ |
H A 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() 54 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init() 55 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init() 56 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init() 57 table[3].data = &net->xfrm.sysctl_acq_expires; in xfrm_sysctl_init() 65 net->xfrm.sysctl_hdr = register_net_sysctl_sz(net, "net/core", table, in xfrm_sysctl_init() 67 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init() [all …]
|
H A D | xfrm_policy.c | 482 return __idx_hash(index, net->xfrm.policy_idx_hmask); in idx_hash() 492 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh() 493 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh() 497 *dbits = net->xfrm.policy_bydst[dir].dbits6; in __get_hash_thresh() 498 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh() 511 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() 522 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_bysel() 523 lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash; in policy_hash_bysel() 531 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() 539 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_direct() [all …]
|
H A D | xfrm_state.c | 36 rcu_dereference_protected((table), lockdep_is_held(&(net)->xfrm.xfrm_state_lock)) 65 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash() 73 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash() 80 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash() 85 return __xfrm_seq_hash(seq, net->xfrm.state_hmask); in xfrm_seq_hash() 153 struct net *net = container_of(work, struct net, xfrm.state_hash_work); in xfrm_hash_resize() 159 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize() 182 spin_lock_bh(&net->xfrm.xfrm_state_lock); in xfrm_hash_resize() 183 write_seqcount_begin(&net->xfrm.xfrm_state_hash_generation); in xfrm_hash_resize() 186 odst = xfrm_state_deref_prot(net->xfrm.state_bydst, net); in xfrm_hash_resize() [all …]
|
H A D | xfrm_user.c | 757 x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth; in xfrm_state_construct() 759 x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M; in xfrm_state_construct() 1330 struct sock *nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_nlmsg_multicast() 1390 lseq = read_seqbegin(&net->xfrm.policy_hthresh.lock); in build_spdinfo() 1392 spt4.lbits = net->xfrm.policy_hthresh.lbits4; in build_spdinfo() 1393 spt4.rbits = net->xfrm.policy_hthresh.rbits4; in build_spdinfo() 1394 spt6.lbits = net->xfrm.policy_hthresh.lbits6; in build_spdinfo() 1395 spt6.rbits = net->xfrm.policy_hthresh.rbits6; in build_spdinfo() 1396 } while (read_seqretry(&net->xfrm.policy_hthresh.lock, lseq)); in build_spdinfo() 1451 write_seqlock(&net->xfrm.policy_hthresh.lock); in xfrm_set_spdinfo() [all …]
|
H A D | xfrm_output.c | 493 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()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/net/netfilter/ |
H A 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() 266 const struct nft_xfrm *xfrm; in nft_xfrm_reduce() local 273 xfrm = nft_expr_priv(track->regs[priv->dreg].selector); in nft_xfrm_reduce() 274 if (priv->key != xfrm->key || in nft_xfrm_reduce() 275 priv->dreg != xfrm->dreg || in nft_xfrm_reduce() 276 priv->dir != xfrm->dir || in nft_xfrm_reduce() 277 priv->spnum != xfrm->spnum) { in nft_xfrm_reduce()
|
H A 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()
|
/openbmc/linux/net/ipv6/ |
H A D | xfrm6_policy.c | 148 } while (xdst->u.dst.xfrm); in xfrm6_dst_ifdown() 189 .data = &init_net.xfrm.xfrm6_dst_ops.gc_thresh, 208 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()
|
/openbmc/linux/net/ipv4/ |
H A D | xfrm4_policy.c | 146 .data = &init_net.xfrm.xfrm4_dst_ops.gc_thresh, 165 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init() 210 memcpy(&net->xfrm.xfrm4_dst_ops, &xfrm4_dst_ops_template, in xfrm4_net_init() 212 ret = dst_entries_init(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init() 218 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init() 226 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_exit()
|
H A D | xfrm4_output.c | 20 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm4_output()
|
/openbmc/linux/arch/x86/kvm/vmx/ |
H A D | sgx.c | 147 u64 attributes, xfrm, size; in __handle_encls_ecreate() local 161 xfrm = contents->xfrm; in __handle_encls_ecreate() 182 (u32)xfrm & ~sgx_12_1->ecx || in __handle_encls_ecreate() 183 (u32)(xfrm >> 32) & ~sgx_12_1->edx || in __handle_encls_ecreate() 184 xfrm & ~(vcpu->arch.guest_supported_xcr0 | XFEATURE_MASK_FPSSE) || in __handle_encls_ecreate() 185 (xfrm & XFEATURE_MASK_FPSSE) != XFEATURE_MASK_FPSSE) { in __handle_encls_ecreate()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_tunnel.sh | 529 ip xfrm state add src 172.16.1.100 dst 172.16.1.200 proto esp \ 533 ip xfrm policy add src 10.1.1.100/32 dst 10.1.1.200/32 dir out \ 538 ip xfrm state add src 172.16.1.200 dst 172.16.1.100 proto esp \ 542 ip xfrm policy add src 10.1.1.200/32 dst 10.1.1.100/32 dir in \ 554 ip xfrm state add src 172.16.1.100 dst 172.16.1.200 proto esp \ 557 ip xfrm policy add src 10.1.1.100/32 dst 10.1.1.200/32 dir in \ 561 ip xfrm state add src 172.16.1.200 dst 172.16.1.100 proto esp \ 564 ip xfrm policy add src 10.1.1.200/32 dst 10.1.1.100/32 dir out \ 633 ip xfrm policy delete dir out src 10.1.1.200/32 dst 10.1.1.100/32 2> /dev/null 634 ip xfrm policy delete dir in src 10.1.1.100/32 dst 10.1.1.200/32 2> /dev/null [all …]
|
/openbmc/openbmc/poky/meta/recipes-support/libnl/ |
H A D | libnl_3.11.0.bb | 38 PACKAGES += "${PN}-cli ${PN}-genl ${PN}-idiag ${PN}-nf ${PN}-route ${PN}-xfrm" 50 FILES:${PN}-xfrm = "${libdir}/libnl-xfrm-3.so.*"
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | ip6_forward_instats_vrf.sh | 151 ip xfrm policy add dst 2001:1:2::2/128 dir fwd action block 154 ip xfrm policy del dst 2001:1:2::2/128 dir fwd
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | sgx.h | 177 u64 xfrm; member 373 u64 xfrm; member
|
/openbmc/linux/include/net/ |
H A D | xfrm.h | 978 if (dst->xfrm || (dst->flags & DST_XFRM_QUEUE)) { in xfrm_dst_path() 990 if (dst->xfrm || (dst->flags & DST_XFRM_QUEUE)) { in xfrm_dst_child() 1008 if (likely(xdst->u.dst.xfrm)) in xfrm_dst_destroy() 1009 xfrm_state_put(xdst->u.dst.xfrm); in xfrm_dst_destroy() 1152 if (!net->xfrm.policy_count[dir] && !secpath_exists(skb)) in __xfrm_check_nopolicy() 1153 return net->xfrm.policy_default[dir] == XFRM_USERPOLICY_ACCEPT; in __xfrm_check_nopolicy() 1253 if (!net->xfrm.policy_count[XFRM_POLICY_OUT] && in xfrm_route_forward() 1254 net->xfrm.policy_default[XFRM_POLICY_OUT] == XFRM_USERPOLICY_ACCEPT) in xfrm_route_forward() 1856 nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_aevent_is_on() 1869 nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_acquire_is_on() [all …]
|
/openbmc/linux/security/selinux/ |
H A D | Makefile | 20 selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
|
H A D | xfrm.c | 217 x = dst->xfrm; in selinux_xfrm_skb_sid_egress() 457 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
|
/openbmc/linux/Documentation/networking/ |
H A D | secid.rst | 11 matching labeled xfrm(s).
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0017-Adjust-for-musl-headers.patch | 37 src/network/netdev/xfrm.c | 2 +- 361 diff --git a/src/network/netdev/xfrm.c b/src/network/netdev/xfrm.c 363 --- a/src/network/netdev/xfrm.c 364 +++ b/src/network/netdev/xfrm.c 372 #include "xfrm.h"
|
/openbmc/linux/net/core/ |
H A D | dst.c | 57 dst->xfrm = NULL; in dst_init() 106 if (dst->xfrm) { in dst_destroy()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_flowtable.sh | 643 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 644 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 647 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 649 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
|