Lines Matching refs:protocol
73 offsetof(struct iphdr, protocol); in xfrm4_transport_output()
241 offsetof(struct iphdr, protocol); in xfrm4_beet_encap_add()
256 ph->nexthdr = top_iph->protocol; in xfrm4_beet_encap_add()
260 top_iph->protocol = IPPROTO_BEETPH; in xfrm4_beet_encap_add()
276 bool small_ipv6 = (skb->protocol == htons(ETH_P_IPV6)) && (skb->len <= IPV6_MIN_MTU); in xfrm4_tunnel_encap_add()
286 offsetof(struct iphdr, protocol); in xfrm4_tunnel_encap_add()
293 top_iph->protocol = xfrm_af2proto(skb_dst(skb)->ops->family); in xfrm4_tunnel_encap_add()
415 skb->protocol = htons(ETH_P_IP); in xfrm4_prepare_output()
438 skb->protocol = htons(ETH_P_IPV6); in xfrm6_prepare_output()
665 xo->inner_ipproto = ip_hdr(skb)->protocol; in xfrm_get_inner_ipproto()
696 xo->inner_ipproto = inner_ip_hdr(skb)->protocol; in xfrm_get_inner_ipproto()
781 skb->protocol = htons(ETH_P_IP); in xfrm4_tunnel_check_size()
808 XFRM_MODE_SKB_CB(skb)->protocol = ip_hdr(skb)->protocol; in xfrm4_extract_output()
831 skb->protocol = htons(ETH_P_IPV6); in xfrm6_tunnel_check_size()
855 XFRM_MODE_SKB_CB(skb)->protocol = ipv6_hdr(skb)->nexthdr; in xfrm6_extract_output()
893 if (skb->protocol == htons(ETH_P_IP)) in xfrm_local_error()
895 else if (skb->protocol == htons(ETH_P_IPV6) && in xfrm_local_error()