Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_input.c333 const struct xfrm_mode *inner_mode, in xfrm_inner_mode_encap_remove() argument
336 switch (inner_mode->encap) { in xfrm_inner_mode_encap_remove()
338 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()
340 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()
344 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()
346 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()
357 const struct xfrm_mode *inner_mode = &x->inner_mode; in xfrm_prepare_input() local
372 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrm_prepare_input()
373 if (!inner_mode) in xfrm_prepare_input()
377 switch (inner_mode->family) { in xfrm_prepare_input()
[all …]
Dxfrm_output.c732 const struct xfrm_mode *inner_mode; in xfrm_inner_extract_output() local
735 inner_mode = xfrm_ip2inner_mode(x, in xfrm_inner_extract_output()
738 inner_mode = &x->inner_mode; in xfrm_inner_extract_output()
740 if (inner_mode == NULL) in xfrm_inner_extract_output()
743 switch (inner_mode->family) { in xfrm_inner_extract_output()
Dxfrm_interface.c212 const struct xfrm_mode *inner_mode; in xfrmi_rcv_cb() local
240 inner_mode = &x->inner_mode; in xfrmi_rcv_cb()
243 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrmi_rcv_cb()
244 if (inner_mode == NULL) { in xfrmi_rcv_cb()
252 inner_mode->family)) in xfrmi_rcv_cb()
Dxfrm_state.c2585 const struct xfrm_mode *inner_mode; in __xfrm_init_state() local
2597 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()
2598 if (inner_mode == NULL) in __xfrm_init_state()
2601 if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL) && in __xfrm_init_state()
2605 x->inner_mode = *inner_mode; in __xfrm_init_state()
2610 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); in __xfrm_init_state()
2611 if (inner_mode == NULL) in __xfrm_init_state()
2614 if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL)) in __xfrm_init_state()
2617 x->inner_mode = *inner_mode; in __xfrm_init_state()
Dxfrm_policy.c2544 const struct xfrm_mode *inner_mode; in xfrm_bundle_create() local
2585 inner_mode = xfrm_ip2inner_mode(xfrm[i], in xfrm_bundle_create()
2587 if (!inner_mode) { in xfrm_bundle_create()
2593 inner_mode = &xfrm[i]->inner_mode; in xfrm_bundle_create()
2622 afinfo = xfrm_state_afinfo_get_rcu(inner_mode->family); in xfrm_bundle_create()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/ipv6/
Dip6_vti.c350 const struct xfrm_mode *inner_mode; in vti6_rcv_cb() local
369 inner_mode = &x->inner_mode; in vti6_rcv_cb()
372 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti6_rcv_cb()
373 if (inner_mode == NULL) { in vti6_rcv_cb()
380 family = inner_mode->family; in vti6_rcv_cb()
/kernel/linux/linux-5.10/include/net/
Dxfrm.h256 struct xfrm_mode inner_mode; member
444 return &x->inner_mode; in xfrm_ip2inner_mode()