Lines Matching refs:bpf_htons
88 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in filter_udphdr()
106 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in filter_udphdr()
131 if (udph->dest != bpf_htons(port)) in filter_udphdr()
192 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in xdp_mode_tx_handler()
214 if (udph->dest != bpf_htons(port)) in xdp_mode_tx_handler()
229 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in xdp_mode_tx_handler()
251 if (udph->dest != bpf_htons(port)) in xdp_mode_tx_handler()
282 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in update_pkt()
289 iph->tot_len = bpf_htons(bpf_ntohs(iph->tot_len) + offset); in update_pkt()
295 len_new = bpf_htons(bpf_ntohs(udph->len) + offset); in update_pkt()
296 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in update_pkt()
310 len_new = bpf_htons(bpf_ntohs(len) + offset); in update_pkt()
317 len_new = bpf_htons(bpf_ntohs(udph->len) + offset); in update_pkt()