Searched refs:bpf_ntohs (Results 1 – 5 of 5) sorted by relevance
76 pkt->vlan_outer = bpf_ntohs(vlan_hdr->h_vlan_TCI) in parse_eth_frame()89 pkt->vlan_inner = bpf_ntohs(vlan_hdr->h_vlan_TCI) in parse_eth_frame()95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */ in parse_eth_frame()163 bpf_htons((bpf_ntohs(vlan_hdr->h_vlan_TCI) & 0xf000) in xdp_prognum1()
106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()202 ip6h->payload_len = bpf_htons(bpf_ntohs(payload_len) + sizeof(*ip6h)); in handle_ipv6()
47 #define bpf_ntohs(x) \ macro
357 pkt_bytes = bpf_ntohs(ip6h->payload_len); in process_packet()379 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()