Lines Matching refs:protocol

37 	__be16 protocol;  member
108 iph_inner.protocol = iph6_inner.nexthdr; in encap_ipv4()
122 if (iph_inner.ihl != 5 || iph_inner.protocol != IPPROTO_TCP) in encap_ipv4()
153 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in encap_ipv4()
194 h_outer.ip.protocol = encap_proto; in encap_ipv4()
261 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in encap_ipv6()
315 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
324 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
333 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
342 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
351 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
360 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
369 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_eth()
378 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_sit_none()
387 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6tnl_none()
396 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6gre_none()
405 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6gre_mpls()
414 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6gre_eth()
423 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6udp_none()
432 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6udp_mpls()
441 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6udp_eth()
462 switch (bpf_ntohs(greh.protocol)) { in decap_internal()
507 iph_outer.protocol); in decap_ipv4()
525 switch (skb->protocol) { in decap_f()