Home
last modified time | relevance | path

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

/samples/seccomp/
Dbpf-helper.c20 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() argument
32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps()
90 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() argument
92 struct sock_filter *end = filter + count; in seccomp_bpf_print()
93 for ( ; filter < end; ++filter) in seccomp_bpf_print()
95 filter->code, filter->jt, filter->jf, filter->k); in seccomp_bpf_print()
Dbpf-fancy.c35 struct sock_filter filter[] = { in main() local
82 .filter = filter, in main()
83 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in main()
86 bpf_resolve_jumps(&l, filter, sizeof(filter)/sizeof(*filter)); in main()
Ddropper.c30 struct sock_filter filter[] = { in install_filter() local
42 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_filter()
43 .filter = filter, in install_filter()
Dbpf-direct.c113 struct sock_filter filter[] = { in install_filter() local
146 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_filter()
147 .filter = filter, in install_filter()
Duser-trap.c88 struct sock_filter filter[] = { in user_trap_syscall() local
97 .len = (unsigned short)ARRAY_SIZE(filter), in user_trap_syscall()
98 .filter = filter, in user_trap_syscall()
Dbpf-helper.h36 struct sock_filter *filter, size_t count);
38 void seccomp_bpf_print(struct sock_filter *filter, size_t count);
/samples/bpf/
Dtracex5_user.c24 struct sock_filter filter[] = { in install_accept_all_seccomp() local
28 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_accept_all_seccomp()
29 .filter = filter, in install_accept_all_seccomp()
Dxdp2skb_meta.sh148 call_tc filter show dev $device ingress
164 call_tc_allow_fail filter del dev $device ingress
188 call_tc filter add dev $device ingress \
Dtc_l2_redirect.sh45 $IP netns exec ns2 $TC filter add dev vens2 ingress bpf da obj $REDIRECT_BPF sec drop_non_tun_vip
63 $TC filter add dev ve2 ingress bpf da obj $REDIRECT_BPF sec l2_to_iptun_ingress_forward
99 $TC filter add dev ve2 egress bpf da obj $REDIRECT_BPF sec l2_to_iptun_ingress_redirect
103 $TC filter add dev ve1 ingress bpf da obj $REDIRECT_BPF sec l2_to_iptun_ingress_redirect
136 $TC filter add dev ve2 egress bpf da obj $REDIRECT_BPF sec l2_to_ip6tun_ingress_redirect
140 $TC filter add dev ve1 ingress bpf da obj $REDIRECT_BPF sec l2_to_ip6tun_ingress_redirect
Dtest_cls_bpf.sh18 tc filter add dev $IFC ingress bpf da obj $1 sec $2
Dtest_cgrp2_tc.sh83 $TC filter add dev $HOST_IFC egress bpf da obj $BPF_PROG sec $BPF_SECTION || return $?
Dtest_ipip.sh90 ip netns exec at_ns2 tc filter add dev $DEV egress bpf da obj tcbpf2_kern.o sec $SET_TUNNEL
91 ip netns exec at_ns2 tc filter add dev $DEV ingress bpf da obj tcbpf2_kern.o sec $GET_TUNNEL
DMakefile179 ARM_ARCH_SELECTOR := $(filter -D__LINUX_ARM_ARCH__%, $(KBUILD_CFLAGS))
/samples/watch_queue/
Dwatch_test.c144 static struct watch_notification_filter filter = { variable
169 if (ioctl(fd, IOC_WATCH_QUEUE_SET_FILTER, &filter) == -1) { in main()
/samples/
DKconfig136 BPF filter construction.