Lines Matching refs:htons
66 if (skb->protocol != htons(ETH_P_IPV6)) return TC_ACT_PIPE; in nat64()
84 if (is_ethernet && (eth->h_proto != htons(ETH_P_IPV6))) return TC_ACT_PIPE; in nat64()
115 __be16 frag_off = htons(IP_DF); in nat64()
135 frag_off = htons(frag_off); in nat64()
161 eth2.h_proto = htons(ETH_P_IP); // But replace the ethertype in nat64()
168 .tot_len = htons(tot_len), // be16 in nat64()
200 if (bpf_skb_change_proto(skb, htons(ETH_P_IP), 0)) { in nat64()
238 if (KVER_IS_AT_LEAST(kver, 4, 14, 0) && frag_off != htons(IP_DF)) { in nat64()
304 if (skb->protocol != htons(ETH_P_IP)) return TC_ACT_PIPE;
337 if (ip4->frag_off & ~htons(IP_DF)) return TC_ACT_PIPE;
379 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16
399 if (bpf_skb_change_proto(skb, htons(ETH_P_IPV6), 0)) return TC_ACT_PIPE;