Searched refs:inner_mode (Results 1 – 8 of 8) sorted by relevance
333 const struct xfrm_mode *inner_mode, in xfrm_inner_mode_encap_remove() argument336 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() local372 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 …]
732 const struct xfrm_mode *inner_mode; in xfrm_inner_extract_output() local735 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()
212 const struct xfrm_mode *inner_mode; in xfrmi_rcv_cb() local240 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()
2585 const struct xfrm_mode *inner_mode; in __xfrm_init_state() local2597 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()
2544 const struct xfrm_mode *inner_mode; in xfrm_bundle_create() local2585 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()
99 const struct xfrm_mode *inner_mode; in vti_rcv_cb() local118 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()
350 const struct xfrm_mode *inner_mode; in vti6_rcv_cb() local369 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()
256 struct xfrm_mode inner_mode; member444 return &x->inner_mode; in xfrm_ip2inner_mode()