Home
last modified time | relevance | path

Searched refs:inner_mode (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/net/xfrm/
Dxfrm_input.c335 const struct xfrm_mode *inner_mode, in xfrm_inner_mode_encap_remove() argument
338 switch (inner_mode->encap) { in xfrm_inner_mode_encap_remove()
340 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()
342 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()
346 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()
348 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()
359 const struct xfrm_mode *inner_mode = &x->inner_mode; in xfrm_prepare_input() local
374 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrm_prepare_input()
375 if (!inner_mode) in xfrm_prepare_input()
379 switch (inner_mode->family) { in xfrm_prepare_input()
[all …]
Dxfrm_output.c869 const struct xfrm_mode *inner_mode; in xfrm_inner_extract_output() local
872 inner_mode = xfrm_ip2inner_mode(x, in xfrm_inner_extract_output()
875 inner_mode = &x->inner_mode; in xfrm_inner_extract_output()
877 if (inner_mode == NULL) in xfrm_inner_extract_output()
880 switch (inner_mode->family) { in xfrm_inner_extract_output()
Dxfrm_interface.c315 const struct xfrm_mode *inner_mode; in xfrmi_rcv_cb() local
345 inner_mode = &x->inner_mode; in xfrmi_rcv_cb()
348 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrmi_rcv_cb()
349 if (inner_mode == NULL) { in xfrmi_rcv_cb()
357 inner_mode->family)) in xfrmi_rcv_cb()
Dxfrm_state.c2617 const struct xfrm_mode *inner_mode; in __xfrm_init_state() local
2629 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()
2630 if (inner_mode == NULL) { in __xfrm_init_state()
2635 if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL) && in __xfrm_init_state()
2641 x->inner_mode = *inner_mode; in __xfrm_init_state()
2646 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); in __xfrm_init_state()
2647 if (inner_mode == NULL) { in __xfrm_init_state()
2652 if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL)) { in __xfrm_init_state()
2657 x->inner_mode = *inner_mode; in __xfrm_init_state()
Dxfrm_policy.c2539 const struct xfrm_mode *inner_mode; in xfrm_bundle_create() local
2580 inner_mode = xfrm_ip2inner_mode(xfrm[i], in xfrm_bundle_create()
2582 if (!inner_mode) { in xfrm_bundle_create()
2588 inner_mode = &xfrm[i]->inner_mode; in xfrm_bundle_create()
2619 afinfo = xfrm_state_afinfo_get_rcu(inner_mode->family); in xfrm_bundle_create()
/linux-6.1.9/net/ipv4/
Dip_vti.c99 const struct xfrm_mode *inner_mode; in vti_rcv_cb() local
118 inner_mode = &x->inner_mode; in vti_rcv_cb()
121 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti_rcv_cb()
122 if (inner_mode == NULL) { in vti_rcv_cb()
129 family = inner_mode->family; in vti_rcv_cb()
Desp4_offload.c113 __be16 type = x->inner_mode.family == AF_INET6 ? htons(ETH_P_IPV6) in xfrm4_tunnel_gso_segment()
/linux-6.1.9/net/ipv6/
Dip6_vti.c351 const struct xfrm_mode *inner_mode; in vti6_rcv_cb() local
370 inner_mode = &x->inner_mode; in vti6_rcv_cb()
373 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti6_rcv_cb()
374 if (inner_mode == NULL) { in vti6_rcv_cb()
381 family = inner_mode->family; in vti6_rcv_cb()
Desp6_offload.c148 __be16 type = x->inner_mode.family == AF_INET ? htons(ETH_P_IP) in xfrm6_tunnel_gso_segment()
/linux-6.1.9/include/net/
Dxfrm.h267 struct xfrm_mode inner_mode; member
447 return &x->inner_mode; in xfrm_ip2inner_mode()