Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_misc_tcp_hdr_options.c55 ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, sizeof(hdr.reg_opt), in __check_active_hdr_in()
61 ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, sizeof(hdr.reg_opt), in __check_active_hdr_in()
63 if (ret != 4 || hdr.reg_opt.len != 4 || hdr.reg_opt.kind != 0xB9 || in __check_active_hdr_in()
64 hdr.reg_opt.data[0] != 0xfa || hdr.reg_opt.data[1] != 0xce) in __check_active_hdr_in()
183 reg_opt.len = 4; in write_active_opt()
198 err = bpf_store_hdr_opt(skops, &reg_opt, sizeof(reg_opt), 0); in write_active_opt()
201 err = bpf_store_hdr_opt(skops, &reg_opt, sizeof(reg_opt), 0); in write_active_opt()
211 reg_opt.len = 0; in write_active_opt()
212 ret = bpf_load_hdr_opt(skops, &reg_opt, sizeof(reg_opt), 0); in write_active_opt()
213 if (ret != 4 || reg_opt.len != 4 || reg_opt.kind != 0xB9 || in write_active_opt()
[all …]