Lines Matching refs:BPF_CGROUP_INET_EGRESS
86 if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
106 if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
115 if (bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS)) { in test_foo_bar()
124 if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
130 if (bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS)) { in test_foo_bar()
139 if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
145 if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) { in test_foo_bar()
151 if (bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS)) { in test_foo_bar()
156 if (!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS)) { in test_foo_bar()
162 if (bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0)) { in test_foo_bar()
167 if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) { in test_foo_bar()
173 if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
180 if (!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
187 if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, 0)) { in test_foo_bar()
302 if (bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in test_multiprog()
307 if (!bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in test_multiprog()
312 if (bpf_prog_attach(allow_prog[1], cg1, BPF_CGROUP_INET_EGRESS, in test_multiprog()
317 if (bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS, in test_multiprog()
322 if (bpf_prog_attach(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS, in test_multiprog()
327 if (bpf_prog_attach(allow_prog[4], cg4, BPF_CGROUP_INET_EGRESS, in test_multiprog()
332 if (bpf_prog_attach(allow_prog[5], cg5, BPF_CGROUP_INET_EGRESS, 0)) { in test_multiprog()
341 assert(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, BPF_F_QUERY_EFFECTIVE, in test_multiprog()
345 assert(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, BPF_F_QUERY_EFFECTIVE, in test_multiprog()
353 assert(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, BPF_F_QUERY_EFFECTIVE, in test_multiprog()
361 assert(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, 0, in test_multiprog()
367 if (bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS)) { in test_multiprog()
379 if (!bpf_prog_detach2(0, cg3, BPF_CGROUP_INET_EGRESS)) { in test_multiprog()
383 if (bpf_prog_detach2(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS)) { in test_multiprog()
394 if (bpf_prog_detach2(-1, cg4, BPF_CGROUP_INET_EGRESS)) { in test_multiprog()
405 assert(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, BPF_F_QUERY_EFFECTIVE, in test_multiprog()
409 assert(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, 0, in test_multiprog()