Home
last modified time | relevance | path

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

/external/dhcpcd/
Dbpf-filter.h36 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12),
40 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20 + BPF_ETHCOOK),
43 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20 + BPF_ETHCOOK),
46 BPF_STMT(BPF_RET + BPF_K, BPF_WHOLEPACKET),
48 BPF_STMT(BPF_RET + BPF_K, 0),
81 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12),
85 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, 23 + BPF_ETHCOOK),
88 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20 + BPF_ETHCOOK),
91 BPF_STMT(BPF_LDX + BPF_B + BPF_MSH, 14 + BPF_ETHCOOK),
93 BPF_STMT(BPF_LD + BPF_H + BPF_IND, 16 + BPF_ETHCOOK),
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c180 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 2),
182 BPF_STMT(BPF_MISC| BPF_TAX, 0),
184 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 3),
186 BPF_STMT(BPF_ALU | BPF_LSH | BPF_K, 8),
188 BPF_STMT(BPF_ALU | BPF_OR | BPF_X, 0),
190 BPF_STMT(BPF_MISC| BPF_TAX, 0),
197 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
199 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0xF),
212 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 0),
214 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0F03),
[all …]
/external/strace/tests/
Dseccomp.c27 && defined BPF_STMT
31 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW)
35 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ERRNO | (SECCOMP_RET_DATA & (err)))
38 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL)
52 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, offsetof(struct seccomp_data, nr)),
/external/openssh/
Dsandbox-seccomp-filter.c78 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO|(_errno))
81 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
86 BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
89 BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL),
91 BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
132 BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL),
/external/kernel-headers/original/uapi/linux/
Dfilter.h47 #ifndef BPF_STMT
48 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/external/android-clat/
Dclatd.c93 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 24), in configure_packet_socket()
95 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 28), in configure_packet_socket()
97 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 32), in configure_packet_socket()
99 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 36), in configure_packet_socket()
101 BPF_STMT(BPF_RET | BPF_K, PACKETLEN), in configure_packet_socket()
102 BPF_STMT(BPF_RET | BPF_K, 0) in configure_packet_socket()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c294 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 2 * ETH_ALEN), in l2_packet_init_bridge()
298 BPF_STMT(BPF_RET | BPF_K, ~0), in l2_packet_init_bridge()
300 BPF_STMT(BPF_RET | BPF_K, 0) in l2_packet_init_bridge()
/external/iputils/
Dping.c1376 BPF_STMT(BPF_LDX|BPF_B|BPF_MSH, 0), /* Skip IP header. F..g BSD... Look into ping6. */ in install_filter()
1377 BPF_STMT(BPF_LD|BPF_H|BPF_IND, 4), /* Load icmp echo ident */ in install_filter()
1379 BPF_STMT(BPF_RET|BPF_K, ~0U), /* Yes, it passes. */ in install_filter()
1380 BPF_STMT(BPF_LD|BPF_B|BPF_IND, 0), /* Load icmp type */ in install_filter()
1382 BPF_STMT(BPF_RET|BPF_K, 0xFFFFFFF), /* No. It passes. */ in install_filter()
1383 BPF_STMT(BPF_RET|BPF_K, 0) /* Echo with wrong ident. Reject. */ in install_filter()
Drarpd.c334 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 6), in load_arp_bpflet()
336 BPF_STMT(BPF_RET|BPF_K, 1024), in load_arp_bpflet()
337 BPF_STMT(BPF_RET|BPF_K, 0), in load_arp_bpflet()
Dping6.c1780 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 4), /* Load icmp echo ident */ in install_filter()
1782 BPF_STMT(BPF_RET|BPF_K, ~0U), /* Yes, it passes. */ in install_filter()
1783 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 0), /* Load icmp type */ in install_filter()
1785 BPF_STMT(BPF_RET|BPF_K, ~0U), /* No. It passes. This must not happen. */ in install_filter()
1786 BPF_STMT(BPF_RET|BPF_K, 0), /* Echo with wrong ident. Reject. */ in install_filter()
/external/toybox/toys/pending/
Ddhcp.c243 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 9),
245 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 6),
247 BPF_STMT(BPF_LDX|BPF_B|BPF_MSH, 0), BPF_STMT(BPF_LD|BPF_H|BPF_IND, 2),
249 BPF_STMT(BPF_RET|BPF_K, 0xffffffff), BPF_STMT(BPF_RET|BPF_K, 0),
/external/libpcap/pcap/
Dbpf.h1318 #define BPF_STMT(code, k) { (u_short)(code), 0, 0, k } macro
/external/libpcap/
Dpcap-linux.c401 = BPF_STMT(BPF_RET | BPF_K, 0);