Home
last modified time | relevance | path

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

/tools/include/uapi/linux/
Dfilter.h24 struct sock_filter { /* Filter block */ struct
33 struct sock_filter *filter; argument
/tools/testing/selftests/net/
Dpsock_lib.h50 struct sock_filter bpf_filter[] = { in pair_udp_setfilter()
66 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in pair_udp_setfilter()
Dtoeplitz.c287 struct sock_filter filter[] = { in __set_filter()
300 prog.len = sizeof(filter) / sizeof(struct sock_filter); in __set_filter()
323 struct sock_filter filter[] = { in set_filter_null()
329 prog.len = sizeof(filter) / sizeof(struct sock_filter); in set_filter_null()
Dpsock_fanout.c113 struct sock_filter bpf_filter[] = { in sock_fanout_set_cbpf()
120 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in sock_fanout_set_cbpf()
Dreuseport_bpf_cpu.c79 struct sock_filter code[] = { in attach_bpf()
Dreuseport_bpf.c135 struct sock_filter code[] = { in attach_cbpf()
348 struct sock_filter ccode[] = {{ BPF_RET | BPF_A, 0, 0, 0 }}; in test_filter_no_reuseport()
Dgro.c122 struct sock_filter filter[] = { in setup_sock_filter()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c380 struct sock_filter filter[] = { in TEST()
411 struct sock_filter allow[] = { in TEST()
414 struct sock_filter *filter; in TEST()
448 struct sock_filter allow[] = { in TEST()
451 struct sock_filter *filter; in TEST()
486 struct sock_filter filter[] = { in TEST()
509 struct sock_filter filter[] = { in TEST()
534 struct sock_filter filter[] = { in TEST()
552 struct sock_filter filter[] = { in TEST()
570 struct sock_filter filter[] = { in TEST()
[all …]
Dseccomp_benchmark.c124 struct sock_filter bitmap_filter[] = { in main()
132 struct sock_filter filter[] = { in main()
/tools/bpf/
Dbpf_dbg.c131 static struct sock_filter bpf_image[BPF_MAXINSNS + 1];
216 static void bpf_disasm(const struct sock_filter f, unsigned int i) in bpf_disasm()
438 static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f) in bpf_dump_curr()
480 static void bpf_disasm_all(const struct sock_filter *f, unsigned int len) in bpf_disasm_all()
488 static void bpf_dump_all(const struct sock_filter *f, unsigned int len) in bpf_dump_all()
498 static bool bpf_runnable(struct sock_filter *f, unsigned int len) in bpf_runnable()
632 static void bpf_single_step(struct bpf_regs *r, struct sock_filter *f, in bpf_single_step()
854 static bool bpf_handle_breakpoint(struct bpf_regs *r, struct sock_filter *f, in bpf_handle_breakpoint()
866 static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, in bpf_run_all()
886 static int bpf_run_stepping(struct sock_filter *f, uint16_t bpf_len, in bpf_run_stepping()
[all …]
Dbpf_exp.y468 static struct sock_filter out[BPF_MAXINSNS];