Lines Matching refs:protocol
89 if (skb->protocol == htons(ETH_P_IP)) { in bpf_lwt_input_reroute()
98 } else if (skb->protocol == htons(ETH_P_IPV6)) { in bpf_lwt_input_reroute()
182 if (skb->protocol == htons(ETH_P_IP)) in bpf_lwt_xmit_reroute()
184 else if (skb->protocol == htons(ETH_P_IPV6)) in bpf_lwt_xmit_reroute()
208 fl4.flowi4_proto = iph->protocol; in bpf_lwt_xmit_reroute()
274 __be16 proto = skb->protocol; in bpf_xmit()
284 if (skb->protocol != proto) { in bpf_xmit()
538 __u8 protocol; in handle_gso_encap() local
548 protocol = ip_hdr(skb)->protocol; in handle_gso_encap()
552 protocol = ipv6_hdr(skb)->nexthdr; in handle_gso_encap()
557 switch (protocol) { in handle_gso_encap()
624 skb_set_inner_protocol(skb, skb->protocol); in bpf_lwt_push_ip_encap()
635 skb->protocol = htons(ETH_P_IP); in bpf_lwt_push_ip_encap()
642 skb->protocol = htons(ETH_P_IPV6); in bpf_lwt_push_ip_encap()