Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_misc_tcp_hdr_options.c19 __u16 last_addr16_n = __bpf_htons(1);
82 hdr.exprm_opt.magic = __bpf_htons(0xeB9F); in __check_active_hdr_in()
87 hdr.exprm_opt.magic != __bpf_htons(0xeB9F)) in __check_active_hdr_in()
176 exprm_opt.magic = __bpf_htons(0xeB9F); in write_active_opt()
204 exprm_opt.magic != __bpf_htons(0xeB9F)) in write_active_opt()
304 passive_lport_n = __bpf_htons(passive_lport_h); in misc_estab()
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()
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-6.1.9/tools/lib/bpf/
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))