Lines Matching refs:protocol
94 if (skb->protocol == htons(ETH_P_IP)) { in bpf_lwt_input_reroute()
104 } else if (skb->protocol == htons(ETH_P_IPV6)) { in bpf_lwt_input_reroute()
188 if (skb->protocol == htons(ETH_P_IP)) in bpf_lwt_xmit_reroute()
190 else if (skb->protocol == htons(ETH_P_IPV6)) in bpf_lwt_xmit_reroute()
214 fl4.flowi4_proto = iph->protocol; in bpf_lwt_xmit_reroute()
280 __be16 proto = skb->protocol; in bpf_xmit()
290 if (skb->protocol != proto) { in bpf_xmit()
544 __u8 protocol; in handle_gso_encap() local
554 protocol = ip_hdr(skb)->protocol; in handle_gso_encap()
558 protocol = ipv6_hdr(skb)->nexthdr; in handle_gso_encap()
563 switch (protocol) { in handle_gso_encap()
630 skb_set_inner_protocol(skb, skb->protocol); in bpf_lwt_push_ip_encap()
641 skb->protocol = htons(ETH_P_IP); in bpf_lwt_push_ip_encap()
648 skb->protocol = htons(ETH_P_IPV6); in bpf_lwt_push_ip_encap()