Home
last modified time | relevance | path

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

/tools/testing/selftests/net/
Dpsock_lib.h52 struct sock_fprog bpf_prog; in sock_setfilter() local
57 bpf_prog.filter = bpf_filter; in sock_setfilter()
58 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in sock_setfilter()
59 if (setsockopt(fd, lvl, optnum, &bpf_prog, in sock_setfilter()
60 sizeof(bpf_prog))) { in sock_setfilter()