Home
last modified time | relevance | path

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

/netbsd/usr.bin/rump_dhcpclient/
H A 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),
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),
/netbsd/tests/net/bpfjit/
H A Dt_bpfjit.c1744 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 7, 0, 1), in ATF_TC_BODY()
1746 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 2, 2, 0), in ATF_TC_BODY()
1747 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 9, 0, 0), in ATF_TC_BODY()
1749 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 4, 1, 1), in ATF_TC_BODY()
1751 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 6, 2, 3), in ATF_TC_BODY()
1755 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 5, 3, 1), in ATF_TC_BODY()
1757 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 0, 0, 0), in ATF_TC_BODY()
1801 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 8, 0, 1), in ATF_TC_BODY()
1803 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 3, 2, 0), in ATF_TC_BODY()
1804 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 9, 0, 0), in ATF_TC_BODY()
[all …]
/netbsd/tests/lib/libbpfjit/
H A Dt_bpfjit.c1980 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 7, 0, 1), in ATF_TC_BODY()
1982 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 2, 2, 0), in ATF_TC_BODY()
1983 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 9, 0, 0), in ATF_TC_BODY()
1985 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 4, 1, 1), in ATF_TC_BODY()
1987 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 6, 2, 3), in ATF_TC_BODY()
1991 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 5, 3, 1), in ATF_TC_BODY()
1993 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, 0, 0, 0), in ATF_TC_BODY()
2031 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 8, 0, 1), in ATF_TC_BODY()
2033 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 3, 2, 0), in ATF_TC_BODY()
2034 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 9, 0, 0), in ATF_TC_BODY()
[all …]
/netbsd/external/bsd/dhcpcd/dist/src/
H A Dbpf.c442 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_ARP, 1, 0),
450 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPHRD_ETHER, 1, 0),
455 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K,
464 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 1, 0),
468 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REQUEST, 2, 0),
470 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REPLY, 1, 0),
578 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 1, 0),
590 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, 0x40, 1, 0),
595 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 1, 0),
600 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x1fff, 0, 1),
[all …]
/netbsd/usr.sbin/npf/npfctl/
H A Dnpf_bpf_comp.c418 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ver, jt, jf), in fetch_l3()
486 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, proto, 0, JUMP_MAGIC), in npfctl_bpf_proto()
568 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, word, 0, JUMP_MAGIC), in npfctl_bpf_cidr()
617 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, from, 0, JUMP_MAGIC), in npfctl_bpf_ports()
623 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, from, 0, 1), in npfctl_bpf_ports()
624 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, to, 0, 1), in npfctl_bpf_ports()
661 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, IPPROTO_TCP, 0, jf), in npfctl_bpf_tcpfl()
682 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, tf, 0, JUMP_MAGIC), in npfctl_bpf_tcpfl()
711 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, type, 0, JUMP_MAGIC), in npfctl_bpf_icmp()
722 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, code, 0, JUMP_MAGIC), in npfctl_bpf_icmp()
[all …]
/netbsd/external/mpl/dhcp/dist/common/
H A Dbpf.c183 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 0, 8),
187 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 0, 6),
191 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x1fff, 4, 0),
198 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, 67, 0, 1), /* patch */
214 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 0, 10),
218 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 0, 8),
222 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x1fff, 6, 0),
229 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, 67, 2, 0), /* patch */
233 BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, 67, 0, 1), /* patch */
/netbsd/external/bsd/wpa/dist/src/drivers/
H A Ddriver_nl80211_monitor.c201 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, PASS, 0),
217 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0801, PASS, 0),
228 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 8, 0, FAIL),
235 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 3, PASS, 0),
258 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_X, 0, PASS, 0),
264 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0xAAAA0300, 0, FAIL),
266 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0000888E, PASS, FAIL),
/netbsd/usr.sbin/ndbootd/config/
H A Dndbootd-bpf.c79 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 0, 9),
83 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_ND, 0, 7),
87 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x3fff, 5, 0),
94 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, sizeof(struct ndboot_packet), 0, 1),
/netbsd/dist/pf/usr.sbin/ftp-proxy/
H A Dnpf.c109 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 4, 0, 10),
112 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, IPPROTO_TCP, 0, 8),
115 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0xDEADBEEF, 0, 6),
118 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0xDEADBEEF, 0, 4),
122 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0xDEADBEEF, 0, 1),
/netbsd/usr.sbin/mopd/common/
H A Dpf.c82 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x4711, 4, 0), in pfInit()
84 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x4711, 0, 3), in pfInit()
86 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0xaaaa, 0, 1), in pfInit()
/netbsd/tests/net/bpfilter/
H A Dt_bpfilter.c82 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ICMP_ECHOREPLY, 1, 0),
90 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, BMAGIC, 1, 0),
94 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, HMAGIC, 1, 0),
98 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, WMAGIC, 1, 0),
/netbsd/external/bsd/libpcap/dist/pcap/
H A Dbpf.h247 #define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k } macro
/netbsd/external/bsd/ipf/bin/ipftest/
H A Dbpf-ipf.h416 #define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k } macro
/netbsd/usr.sbin/rarpd/
H A Drarpd.c304 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, ETHERTYPE_REVARP, 0, 3), in rarp_open()
306 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, ARPOP_REVREQUEST, 0, 1), in rarp_open()
/netbsd/sys/net/
H A Dbpf.h352 #define BPF_JUMP(code, k, jt, jf) { (uint16_t)(code), jt, jf, k } macro
/netbsd/external/bsd/wpa/dist/src/l2_packet/
H A Dl2_packet_linux.c348 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, protocol, 0, 1), in l2_packet_init_bridge()