Lines Matching refs:bpf_htons
79 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in filter_udphdr()
87 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in filter_udphdr()
102 if (udph->dest != bpf_htons(port)) in filter_udphdr()
156 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in xdp_mode_tx_handler()
168 if (udph->dest != bpf_htons(port)) in xdp_mode_tx_handler()
181 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in xdp_mode_tx_handler()
193 if (udph->dest != bpf_htons(port)) in xdp_mode_tx_handler()
223 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in update_pkt()
230 iph->tot_len = bpf_htons(bpf_ntohs(iph->tot_len) + offset); in update_pkt()
236 len_new = bpf_htons(bpf_ntohs(udph->len) + offset); in update_pkt()
237 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in update_pkt()
251 len_new = bpf_htons(bpf_ntohs(len) + offset); in update_pkt()
258 len_new = bpf_htons(bpf_ntohs(udph->len) + offset); in update_pkt()