Home
last modified time | relevance | path

Searched refs:bpf_ntohs (Results 1 – 5 of 5) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp_vlan.c76 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()
Dtest_xdp.c106 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()
Dbpf_endian.h47 #define bpf_ntohs(x) \ macro
Dtest_l4lb.c357 pkt_bytes = bpf_ntohs(ip6h->payload_len); in process_packet()
379 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()
Dtest_l4lb_noinline.c357 pkt_bytes = bpf_ntohs(ip6h->payload_len); in process_packet()
379 pkt_bytes = bpf_ntohs(iph->tot_len); in process_packet()