Home
last modified time | relevance | path

Searched refs:XFRM_MODE_SKB_CB (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_inout.h13 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm4_extract_header()
14 XFRM_MODE_SKB_CB(skb)->id = iph->id; in xfrm4_extract_header()
15 XFRM_MODE_SKB_CB(skb)->frag_off = iph->frag_off; in xfrm4_extract_header()
16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header()
17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header()
18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header()
19 memset(XFRM_MODE_SKB_CB(skb)->flow_lbl, 0, in xfrm4_extract_header()
20 sizeof(XFRM_MODE_SKB_CB(skb)->flow_lbl)); in xfrm4_extract_header()
28 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm6_extract_header()
29 XFRM_MODE_SKB_CB(skb)->id = 0; in xfrm6_extract_header()
[all …]
Dxfrm_output.c155 optlen = XFRM_MODE_SKB_CB(skb)->optlen; in xfrm4_beet_encap_add()
160 (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); in xfrm4_beet_encap_add()
169 ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); in xfrm4_beet_encap_add()
221 top_iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_tunnel_encap_add()
223 XFRM_MODE_SKB_CB(skb)->tos); in xfrm4_tunnel_encap_add()
230 0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF)); in xfrm4_tunnel_encap_add()
259 memcpy(top_iph->flow_lbl, XFRM_MODE_SKB_CB(skb)->flow_lbl, in xfrm6_tunnel_encap_add()
266 dsfield = XFRM_MODE_SKB_CB(skb)->tos; in xfrm6_tunnel_encap_add()
267 dsfield = INET_ECN_encapsulate(dsfield, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_tunnel_encap_add()
284 optlen = XFRM_MODE_SKB_CB(skb)->optlen; in xfrm6_beet_encap_add()
[all …]
Dxfrm_input.c180 if (unlikely(XFRM_MODE_SKB_CB(skb)->protocol == IPPROTO_BEETPH)) { in xfrm4_remove_beet_encap()
194 XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr; in xfrm4_remove_beet_encap()
224 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip_ecn_decapsulate()
232 if (XFRM_MODE_SKB_CB(skb)->protocol != IPPROTO_IPIP) in xfrm4_remove_tunnel_encap()
243 ipv4_copy_dscp(XFRM_MODE_SKB_CB(skb)->tos, ipip_hdr(skb)); in xfrm4_remove_tunnel_encap()
262 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip6_ecn_decapsulate()
270 if (XFRM_MODE_SKB_CB(skb)->protocol != IPPROTO_IPV6) in xfrm6_remove_tunnel_encap()
372 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrm_prepare_input()
675 XFRM_MODE_SKB_CB(skb)->protocol = nexthdr; in xfrm_input()
680 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrm_input()
Dxfrm_interface.c243 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrmi_rcv_cb()
/kernel/linux/linux-5.10/net/ipv4/
Dxfrm4_input.c52 iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol; in xfrm4_transport_finish()
Dip_vti.c121 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti_rcv_cb()
/kernel/linux/linux-5.10/net/ipv6/
Dxfrm6_input.c47 XFRM_MODE_SKB_CB(skb)->protocol; in xfrm6_transport_finish()
Dip6_vti.c372 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti6_rcv_cb()
/kernel/linux/linux-5.10/include/net/
Dxfrm.h660 #define XFRM_MODE_SKB_CB(__skb) ((struct xfrm_mode_skb_cb *)&((__skb)->cb[0])) macro