/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() 67 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init() 81 table = net->xfrm.sysctl_hdr->ctl_table_arg; in xfrm_sysctl_fini() [all …]
|
H A D | xfrm_policy.c | 2478 xfrm[nx++] = x; in xfrm_tmpl_resolve_one() 2498 xfrm_state_put(xfrm[nx]); in xfrm_tmpl_resolve_one() 2679 if (xfrm[i]->props.smark.v || xfrm[i]->props.smark.m) in xfrm_bundle_create() 2694 dst1->xfrm = xfrm[i]; in xfrm_bundle_create() 2745 xfrm_state_put(xfrm[i]); in xfrm_bundle_create() 3242 if (dst && dst->xfrm && in xfrm_lookup_with_ifid() 3933 } while (dst->xfrm); in xfrm_bundle_ok() 3972 while (dst->xfrm) { in xfrm_get_dst_nexthop() 3973 const struct xfrm_state *xfrm = dst->xfrm; in xfrm_get_dst_nexthop() local 3980 daddr = xfrm->coaddr; in xfrm_get_dst_nexthop() [all …]
|
H A D | xfrm_state.c | 192 ohashmask = net->xfrm.state_hmask; in xfrm_hash_resize() 717 net->xfrm.state_num--; in __xfrm_state_delete() 1090 net->xfrm.state_num > net->xfrm.state_hmask) in xfrm_hash_grow_check() 1319 net->xfrm.state_num++; in xfrm_state_find() 1452 net->xfrm.state_num++; in __xfrm_state_insert() 1565 net->xfrm.state_num++; in __find_acq_core() 2885 if (!net->xfrm.state_bydst) in xfrm_state_init() 2888 if (!net->xfrm.state_bysrc) in xfrm_state_init() 2891 if (!net->xfrm.state_byspi) in xfrm_state_init() 2894 if (!net->xfrm.state_byseq) in xfrm_state_init() [all …]
|
H A D | xfrm_user.c | 1386 spt4.lbits = net->xfrm.policy_hthresh.lbits4; in build_spdinfo() 1387 spt4.rbits = net->xfrm.policy_hthresh.rbits4; in build_spdinfo() 1388 spt6.lbits = net->xfrm.policy_hthresh.lbits6; in build_spdinfo() 1389 spt6.rbits = net->xfrm.policy_hthresh.rbits6; in build_spdinfo() 1445 write_seqlock(&net->xfrm.policy_hthresh.lock); in xfrm_set_spdinfo() 2347 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, in xfrm_get_policy() 3185 mutex_lock(&net->xfrm.xfrm_cfg_mutex); in xfrm_netlink_rcv() 3187 mutex_unlock(&net->xfrm.xfrm_cfg_mutex); in xfrm_netlink_rcv() 3850 rcu_assign_pointer(net->xfrm.nlsk, nlsk); in xfrm_user_net_init() 3856 RCU_INIT_POINTER(net->xfrm.nlsk, NULL); in xfrm_user_net_pre_exit() [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 | 123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null 130 ip -net $ns xfrm policy get src $rnet dst $lnet dir fwd > /dev/null 274 ip -net ns1 xfrm policy set hthresh6 0 28 || break 277 ip -net ns1 xfrm policy set hthresh6 0 28 || break 298 ip -net $ns xfrm policy flush 311 ip -net $ns xfrm policy flush 325 ip -net $ns xfrm policy flush 455 ip -net $n xfrm policy set hthresh4 28 24 hthresh6 126 125 462 ip -net ns3 xfrm policy flush 468 ip -net ns3 xfrm policy set hthresh4 16 16 [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 \ 312 run_cmd host-1 ip xfrm state flush 313 run_cmd host-1 ip xfrm policy flush [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 | 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() 252 memcpy(&net->xfrm.xfrm6_dst_ops, &xfrm6_dst_ops_template, in xfrm6_net_init() 254 ret = dst_entries_init(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_init() 260 dst_entries_destroy(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_init() 268 dst_entries_destroy(&net->xfrm.xfrm6_dst_ops); in xfrm6_net_exit()
|
H A D | xfrm6_output.c | 64 struct xfrm_state *x = dst->xfrm; in __xfrm6_output()
|
/openbmc/linux/net/ipv4/ |
H A D | xfrm4_policy.c | 150 .data = &init_net.xfrm.xfrm4_dst_ops.gc_thresh, 169 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init() 214 memcpy(&net->xfrm.xfrm4_dst_ops, &xfrm4_dst_ops_template, in xfrm4_net_init() 216 ret = dst_entries_init(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init() 222 dst_entries_destroy(&net->xfrm.xfrm4_dst_ops); in xfrm4_net_init() 230 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.9.0.bb | 37 PACKAGES += "${PN}-cli ${PN}-genl ${PN}-idiag ${PN}-nf ${PN}-route ${PN}-xfrm" 49 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 | 970 if (dst->xfrm || (dst->flags & DST_XFRM_QUEUE)) { in xfrm_dst_path() 982 if (dst->xfrm || (dst->flags & DST_XFRM_QUEUE)) { in xfrm_dst_child() 1000 if (likely(xdst->u.dst.xfrm)) in xfrm_dst_destroy() 1001 xfrm_state_put(xdst->u.dst.xfrm); in xfrm_dst_destroy() 1144 if (!net->xfrm.policy_count[dir] && !secpath_exists(skb)) in __xfrm_check_nopolicy() 1235 if (!net->xfrm.policy_count[XFRM_POLICY_OUT] && in xfrm_route_forward() 1841 nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_aevent_is_on() 1854 nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_acquire_is_on() 1957 struct xfrm_state *x = dst->xfrm; in xfrm_dst_offload_ok() 1964 if (!x->xso.offload_handle && !xdst->child->xfrm) in xfrm_dst_offload_ok() [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/linux/net/core/ |
H A D | dst.c | 57 dst->xfrm = NULL; in dst_init() 106 if (dst->xfrm) { in dst_destroy()
|
/openbmc/linux/net/ |
H A D | Makefile | 19 obj-$(CONFIG_XFRM) += xfrm/
|