Home
last modified time | relevance | path

Searched refs:bpf (Results 1 – 25 of 97) sorted by relevance

1234

/src/contrib/libpcap/msdos/
H A Dmakefile107 bpf_filt.obj: bpf_filt.c pcap-int.h pcap.h pcap-bpf.h
109 bpf_imag.obj: bpf_imag.c pcap-int.h pcap.h pcap-bpf.h
111 bpf_dump.obj: bpf_dump.c pcap.h pcap-bpf.h
113 etherent.obj: etherent.c pcap-int.h pcap.h pcap-bpf.h pcap-namedb.h
115 optimize.obj: optimize.c pcap-int.h pcap.h pcap-bpf.h gencode.h
117 savefile.obj: savefile.c pcap-int.h pcap.h pcap-bpf.h
119 pcap.obj: pcap.c pcap-dos.h pcap-int.h pcap.h pcap-bpf.h
121 grammar.obj: grammar.c pcap-int.h pcap.h pcap-bpf.h gencode.h \
124 scanner.obj: scanner.c pcap-int.h pcap.h pcap-bpf.h gencode.h \
127 gencode.obj: gencode.c pcap-dos.h pcap-int.h pcap.h pcap-bpf.h \
[all …]
H A Dmakefile.wc97 $(OBJDIR)\bpf_filter.obj: bpf_filter.c pcap-int.h pcap.h pcap-bpf.h
99 $(OBJDIR)\bpf_imag.obj: bpf_imag.c pcap-int.h pcap.h pcap-bpf.h
101 $(OBJDIR)\bpf_dump.obj: bpf_dump.c pcap.h pcap-bpf.h
103 $(OBJDIR)\etherent.obj: etherent.c pcap-int.h pcap.h pcap-bpf.h pcap-namedb.h
105 $(OBJDIR)\optimize.obj: optimize.c pcap-int.h pcap.h pcap-bpf.h gencode.h
107 $(OBJDIR)\savefile.obj: savefile.c pcap-int.h pcap.h pcap-bpf.h
109 $(OBJDIR)\pcap.obj: pcap.c pcap-dos.h pcap-int.h pcap.h pcap-bpf.h
111 $(OBJDIR)\grammar.obj: grammar.c pcap-int.h pcap.h pcap-bpf.h gencode.h &
114 $(OBJDIR)\scanner.obj: scanner.c pcap-int.h pcap.h pcap-bpf.h gencode.h &
117 $(OBJDIR)\gencode.obj: gencode.c pcap-dos.h pcap-int.h pcap.h pcap-bpf.h &
[all …]
/src/usr.sbin/wake/
H A Dwake.c58 static int bind_if_to_bpf(char const *ifname, int bpf);
61 static int send_wakeup(int bpf, struct ether_addr const *addr);
63 static int wake(int bpf, const char *host);
74 wake(int bpf, const char *host) in wake() argument
81 return (send_wakeup(bpf, &macaddr)); in wake()
85 bind_if_to_bpf(char const *ifname, int bpf) in bind_if_to_bpf() argument
94 if (ioctl(bpf, BIOCSETIF, &ifr) == -1) in bind_if_to_bpf()
97 if (ioctl(bpf, BIOCGDLT, &dlt) == -1) in bind_if_to_bpf()
152 send_wakeup(int bpf, struct ether_addr const *addr) in send_wakeup() argument
173 if ((bw = write(bpf, p, len)) == -1) { in send_wakeup()
[all …]
/src/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c182 FILE *bpf; in getthefile() local
197 bpf = fopen(bootpfile, "r"); in getthefile()
198 if ( ! bpf ) in getthefile()
202 while ( fscanf(bpf, "%255s", hostname) > 0 && !match ) { in getthefile()
228 if (fclose(bpf)) in getthefile()
232 if (fclose(bpf)) in getthefile()
239 pch = ch = getc(bpf); in getthefile()
241 pch = ch; ch = getc(bpf); in getthefile()
252 while ( ! res && (fscanf(bpf, REXPAND(INFOLEN), info)) > 0) { in getthefile()
253 ch = getc(bpf); /* and a character */ in getthefile()
[all …]
/src/contrib/ntp/ntpd/
H A Drefclock_irig.c237 double bpf[9]; /* IRIG-B filter shift register */ member
527 irig_b = (up->bpf[8] = up->bpf[7]) * 6.505491e-001; in irig_rf()
528 irig_b += (up->bpf[7] = up->bpf[6]) * -3.875180e+000; in irig_rf()
529 irig_b += (up->bpf[6] = up->bpf[5]) * 1.151180e+001; in irig_rf()
530 irig_b += (up->bpf[5] = up->bpf[4]) * -2.141264e+001; in irig_rf()
531 irig_b += (up->bpf[4] = up->bpf[3]) * 2.712837e+001; in irig_rf()
532 irig_b += (up->bpf[3] = up->bpf[2]) * -2.384486e+001; in irig_rf()
533 irig_b += (up->bpf[2] = up->bpf[1]) * 1.427663e+001; in irig_rf()
534 irig_b += (up->bpf[1] = up->bpf[0]) * -5.352734e+000; in irig_rf()
535 up->bpf[0] = sample - irig_b; in irig_rf()
[all …]
H A Drefclock_chu.c383 double bpf[9]; /* IIR bandpass filter */ member
758 signal = (up->bpf[8] = up->bpf[7]) * 5.844676e-01; in chu_rf()
759 signal += (up->bpf[7] = up->bpf[6]) * 4.884860e-01; in chu_rf()
760 signal += (up->bpf[6] = up->bpf[5]) * 2.704384e+00; in chu_rf()
761 signal += (up->bpf[5] = up->bpf[4]) * 1.645032e+00; in chu_rf()
762 signal += (up->bpf[4] = up->bpf[3]) * 4.644557e+00; in chu_rf()
763 signal += (up->bpf[3] = up->bpf[2]) * 1.879165e+00; in chu_rf()
764 signal += (up->bpf[2] = up->bpf[1]) * 3.522634e+00; in chu_rf()
765 signal += (up->bpf[1] = up->bpf[0]) * 7.315738e-01; in chu_rf()
766 up->bpf[0] = sample - signal; in chu_rf()
[all …]
H A Drefclock_wwv.c933 static double bpf[9]; /* 1000/1200-Hz bpf delay line */ in wwv_rf() local
982 memset((char *)bpf, 0, sizeof(bpf)); in wwv_rf()
1055 syncx = (bpf[8] = bpf[7]) * 4.897278e-01; in wwv_rf()
1056 syncx += (bpf[7] = bpf[6]) * -2.765914e+00; in wwv_rf()
1057 syncx += (bpf[6] = bpf[5]) * 8.110921e+00; in wwv_rf()
1058 syncx += (bpf[5] = bpf[4]) * -1.517732e+01; in wwv_rf()
1059 syncx += (bpf[4] = bpf[3]) * 1.975197e+01; in wwv_rf()
1060 syncx += (bpf[3] = bpf[2]) * -1.814365e+01; in wwv_rf()
1061 syncx += (bpf[2] = bpf[1]) * 1.159783e+01; in wwv_rf()
1062 syncx += (bpf[1] = bpf[0]) * -4.735040e+00; in wwv_rf()
[all …]
/src/sys/netpfil/ipfw/
H A Dip_fw_bpf.c62 struct bpf_if *bpf; member
95 tap->bpf = bpf_attach(tap->name, DLT_EN10MB, PFLOG_HDRLEN, in ipfw_tap_alloc()
112 bpf_detach(tap->bpf); in ipfw_tap_free()
135 if (!bpf_peers_present(tap->bpf)) in ipfw_bpf_tap()
139 bpf_tap(tap->bpf, args->mem, IPFW_ARGS_LENGTH(args->flags)); in ipfw_bpf_tap()
142 bpf_mtap(tap->bpf, args->m); in ipfw_bpf_tap()
157 bpf_mtap2(tap->bpf, fakehdr, ETHER_HDR_LEN, args->m); in ipfw_bpf_tap()
172 V_default_tap.bpf = bpf_attach(V_default_tap.name, DLT_EN10MB, in ipfw_bpf_init()
181 bpf_detach(V_default_tap.bpf); in ipfw_bpf_uninit()
/src/contrib/netbsd-tests/ipf/regress/
H A Dbpf11 pass in bpf-v4 { "0x20 0 0 0xc 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
2 pass out bpf-v4 { "src host 1.1.1.1" }
3 pass in bpf-v4 { "0x20 0 0 0x10 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
4 pass out bpf-v4 { "dst host 1.1.1.1" }
H A Dbpf-f11 pass in bpf-v4 { "0x20 0 0 0xc 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
2 pass out bpf-v4 { "0x20 0 0 0xc 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
3 pass in bpf-v4 { "0x20 0 0 0x10 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
4 pass out bpf-v4 { "0x20 0 0 0x10 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
/src/contrib/netbsd-tests/ipf/expected/
H A Dbpf11 pass in bpf-v4 { "0x20 0 0 0xc 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
2 pass out bpf-v4 { "0 0 0 0 0x20 0 0 0xc 0x15 0 0x1 0x1010101 0x6 0 0 0x1 0x6 0 0 0" }
3 pass in bpf-v4 { "0x20 0 0 0x10 0x15 0 0x1 0x1010101 0x6 0 0 0x60 0x6 0 0 0" }
4 pass out bpf-v4 { "0 0 0 0 0x20 0 0 0x10 0x15 0 0x1 0x1010101 0x6 0 0 0x1 0x6 0 0 0" }
/src/tests/sys/net/bpf/
H A DMakefile5 TESTSDIR= ${TESTSBASE}/sys/net/bpf
15 ATF_TESTS_SH= bpf
17 TEST_METADATA.bpf+= execenv="jail" \
/src/sys/arm64/conf/
H A Dstd.al21 # The `bpf' device enables the Berkeley Packet Filter.
23 # Note that 'bpf' is required for DHCP.
24 device bpf # Berkeley packet filter
H A Dstd.dev86 # The `bpf' device enables the Berkeley Packet Filter.
88 # Note that 'bpf' is required for DHCP.
89 device bpf # Berkeley packet filter
/src/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFPassRegistry.def19 FUNCTION_PASS("bpf-aspace-simplify", BPFASpaceCastSimplifyPass())
20 FUNCTION_PASS("bpf-ir-peephole", BPFIRPeepholePass())
27 "bpf-preserve-static-offset", "BPFPreserveStaticOffsetPass",
/src/contrib/libpcap/
H A Dchmod_bpf18 chgrp admin /dev/bpf*
19 chmod g+rw /dev/bpf*
H A DREADME.md42 ([compressed PostScript](https://www.tcpdump.org/papers/bpf-usenix93.ps.Z),
43 [gzipped PostScript](https://www.tcpdump.org/papers/bpf-usenix93.ps.gz),
44 [PDF](https://www.tcpdump.org/papers/bpf-usenix93.pdf)).
/src/share/examples/jails/
H A Drc.conf.jails25 # add path 'bpf*' unhide
40 #jail_{name}_devfs_ruleset="11" # rule to unhide bpf for DHCP
53 #jail_{name}_devfs_ruleset="11" # rule to unhide bpf for DHCP
70 #jail_XXX_devfs_ruleset="11" # rule to unhide bpf for DHCP
/src/contrib/libpcap/ChmodBPF/
H A DChmodBPF22 chgrp admin /dev/bpf*
23 chmod g+rw /dev/bpf*
/src/lib/libpcap/
H A DMakefile19 pcap-bpf.c \
31 INCS= pcap-bpf.h \
38 pcap/bpf.h \
168 .PATH: ${PCAP_DISTDIR}/bpf/net
/src/sbin/ipf/ipsend/
H A DMakefile66 bpf sunos4-bpf : target
91 bsd-bpf :
/src/sys/dev/usb/
H A Dusb_pf.c81 ubus->bpf = bpf_attach(device_get_nameunit(ubus->bdev), DLT_USB, in usbpf_attach()
91 bpf_detach(ubus->bpf); in usbpf_detach()
364 bpf_tap(bus->bpf, buf, totlen); in usbpf_xfertap()
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicsBPF.td14 let TargetPrefix = "bpf" in { // All intrinsics start with "llvm.bpf."
/src/contrib/blocklist/etc/
H A Dnpf.conf5 set bpf.jit on;
/src/libexec/rbootd/
H A DMakefile2 SRCS= bpf.c conf.c parseconf.c rbootd.c rmpproto.c utils.c

1234