Home
last modified time | relevance | path

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

/external/dhcpcd/
Dbpf-filter.h37 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_ARP, 0, 3),
41 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REQUEST, 2, 0),
44 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REPLY, 0, 1),
46 BPF_STMT(BPF_RET + BPF_K, BPF_WHOLEPACKET),
48 BPF_STMT(BPF_RET + BPF_K, 0),
82 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 0, 8),
86 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 0, 6),
89 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x1fff, 4, 0),
94 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DHCP_CLIENT_PORT, 0, 1),
96 BPF_STMT(BPF_RET + BPF_K, BPF_WHOLEPACKET),
[all …]
/external/libpcap/
Dbpf_image.c59 case BPF_RET|BPF_K:
145 case BPF_JMP|BPF_JGT|BPF_K:
150 case BPF_JMP|BPF_JGE|BPF_K:
155 case BPF_JMP|BPF_JEQ|BPF_K:
160 case BPF_JMP|BPF_JSET|BPF_K:
225 case BPF_ALU|BPF_ADD|BPF_K:
230 case BPF_ALU|BPF_SUB|BPF_K:
235 case BPF_ALU|BPF_MUL|BPF_K:
240 case BPF_ALU|BPF_DIV|BPF_K:
245 case BPF_ALU|BPF_AND|BPF_K:
[all …]
Doptimize.c835 if (b->s.code == (BPF_JMP|BPF_JEQ|BPF_K) &&
877 else if (last->s.code == (BPF_ALU|BPF_SUB|BPF_K)) {
889 else if (last->s.code == (BPF_ALU|BPF_AND|BPF_K) &&
892 b->s.code = BPF_JMP|BPF_K|BPF_JSET;
902 if (b->s.code == (BPF_JMP|BPF_K|BPF_JSET)) {
913 if (vmap[val].is_const && BPF_SRC(b->s.code) == BPF_K) {
1014 case BPF_ALU|BPF_ADD|BPF_K:
1015 case BPF_ALU|BPF_SUB|BPF_K:
1016 case BPF_ALU|BPF_MUL|BPF_K:
1017 case BPF_ALU|BPF_DIV|BPF_K:
[all …]
Dgencode.c102 #define JMP(c) ((c)|BPF_JMP|BPF_K)
344 struct block *b = new_block(BPF_RET|BPF_K);
400 (root->s.code == (BPF_RET|BPF_K) && root->s.k == 0)) in pcap_compile()
668 s2 = new_stmt(BPF_ALU|BPF_AND|BPF_K);
1453 s2 = new_stmt(BPF_ALU|BPF_AND|BPF_K); in gen_loadx_iphdrlen()
1456 s2 = new_stmt(BPF_ALU|BPF_LSH|BPF_K); in gen_loadx_iphdrlen()
1888 s2 = new_stmt(BPF_ALU|BPF_LSH|BPF_K);
1960 s2 = new_stmt(BPF_ALU|BPF_LSH|BPF_K);
4521 s[i] = new_stmt(BPF_JMP|BPF_JEQ|BPF_K);
4532 s[i] = new_stmt(BPF_JMP|BPF_JEQ|BPF_K);
[all …]
Dpcap-bpf.h789 #define BPF_K 0x00 macro
Dpcap-linux.c221 = BPF_STMT(BPF_RET | BPF_K, 0);
2019 if (BPF_MODE(p->code) == BPF_K) { in fix_program()
Dpcap-bpf.c964 total_insn.code = (u_short)(BPF_RET | BPF_K); in pcap_open_live()
/external/libpcap/bpf/net/
Dbpf_filter.c241 case BPF_RET|BPF_K:
402 case BPF_JMP|BPF_JGT|BPF_K:
406 case BPF_JMP|BPF_JGE|BPF_K:
410 case BPF_JMP|BPF_JEQ|BPF_K:
414 case BPF_JMP|BPF_JSET|BPF_K:
468 case BPF_ALU|BPF_ADD|BPF_K:
472 case BPF_ALU|BPF_SUB|BPF_K:
476 case BPF_ALU|BPF_MUL|BPF_K:
480 case BPF_ALU|BPF_DIV|BPF_K:
484 case BPF_ALU|BPF_AND|BPF_K:
[all …]
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c211 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ETH_PPPOE_SESSION, 5, 0), in initFilter()
212 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ETH_PPPOE_DISCOVERY, 0, 9), in initFilter()
215 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0, 0, 2), in initFilter()
218 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0, 4, 0), in initFilter()
221 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0, 0, 3), in initFilter()
224 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0, 0, 1), in initFilter()
225 BPF_STMT(BPF_RET+BPF_K, (u_int) -1), /* keep packet */ in initFilter()
226 BPF_STMT(BPF_RET+BPF_K, 0), /* drop packet */ in initFilter()
230 bpfRun[1].code = (u_short) BPF_JMP+BPF_JEQ+BPF_K; in initFilter()
235 bpfRun[2].code = (u_short) BPF_JMP+BPF_JEQ+BPF_K; in initFilter()
/external/ping/
Dping.c1252 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0xAAAA, 0, 1), /* Ours? */ in install_filter()
1253 BPF_STMT(BPF_RET|BPF_K, ~0U), /* Yes, it passes. */ in install_filter()
1255 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, ICMP_ECHOREPLY, 1, 0), /* Echo? */ in install_filter()
1256 BPF_STMT(BPF_RET|BPF_K, 0xFFFFFFF), /* No. It passes. */ in install_filter()
1257 BPF_STMT(BPF_RET|BPF_K, 0) /* Echo with wrong ident. Reject. */ in install_filter()
1269 insns[2] = (struct sock_filter)BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __constant_htons(ident), 0, 1); in install_filter()
/external/kernel-headers/original/linux/
Dfilter.h83 #define BPF_K 0x00 macro
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211.c6529 BPF_STMT(BPF_ALU | BPF_LSH | BPF_K, 8),
6542 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0xF),
6544 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, PASS, 0),
6557 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0F03),
6560 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0801, PASS, 0),
6569 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0c),
6571 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 8, 0, FAIL),
6576 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x03),
6578 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 3, PASS, 0),
6586 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x80),
[all …]