Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_misc_tcp_hdr_options.c19 __u16 last_addr16_n = __bpf_htons(1);
83 hdr.exprm_opt.magic = __bpf_htons(0xeB9F); in __check_active_hdr_in()
88 hdr.exprm_opt.magic != __bpf_htons(0xeB9F)) in __check_active_hdr_in()
180 exprm_opt.magic = __bpf_htons(0xeB9F); in write_active_opt()
208 exprm_opt.magic != __bpf_htons(0xeB9F)) in write_active_opt()
308 passive_lport_n = __bpf_htons(passive_lport_h); in misc_estab()
H A Dtest_tc_dtime.c139 __u16 dst_ns_port = __bpf_htons(50000 + test); in skb_get_type()
151 case __bpf_htons(ETH_P_IP): in skb_get_type()
162 case __bpf_htons(ETH_P_IPV6): in skb_get_type()
H A Dcrypto_sanity.c38 if (udph.dest != __bpf_htons(udp_test_port)) in skb_dynptr_validate()
H A Dtest_tcp_hdr_options.c97 write_opt.exprm.magic = __bpf_htons(test_magic); in store_option()
142 search_opt.exprm.magic = __bpf_htons(test_magic); in load_option()
/linux/tools/lib/bpf/
H A Dbpf_endian.h52 # define __bpf_htons(x) __builtin_bswap16(x) macro
65 # define __bpf_htons(x) (x) macro
82 __bpf_constant_htons(x) : __bpf_htons(x))