Lines Matching refs:bpf_htons
62 if (skb->protocol != bpf_htons(ETH_P_IPV6))
70 if (eth->h_proto != bpf_htons(ETH_P_IPV6))
92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype
98 .tot_len = bpf_htons(bpf_ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16
100 .frag_off = bpf_htons(IP_DF), // u16
130 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IP), 0))
159 if (skb->protocol != bpf_htons(ETH_P_IP))
167 if (eth->h_proto != bpf_htons(ETH_P_IP))
179 if (bpf_htons(ip4->tot_len) > 0xFFFF - sizeof(struct ipv6hdr))
200 if (ip4->frag_off & ~bpf_htons(IP_DF))
227 eth2.h_proto = bpf_htons(ETH_P_IPV6); // But replace the ethertype
233 .payload_len = bpf_htons(bpf_ntohs(ip4->tot_len) - 20), // __be16
254 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IPV6), 0))