Searched refs:bpf (Results 1 - 25 of 298) sorted by relevance

1234567891011>>

/freebsd-10.3-release/contrib/libpcap/
H A Dpcap-bpf.h38 * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.50 2007-04-01 21:43:55 guy Exp $ (LBL)
45 * might expect to be able to include <pcap-bpf.h>.
47 #include <pcap/bpf.h>
H A Dchmod_bpf18 chgrp admin /dev/bpf*
19 chmod g+rw /dev/bpf*
/freebsd-10.3-release/usr.sbin/wake/
H A Dwake.c33 #include <net/bpf.h>
48 #define _PATH_BPF "/dev/bpf"
58 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) argument
81 return (send_wakeup(bpf, &macaddr));
85 bind_if_to_bpf(char const *ifname, int bpf) argument
94 if (ioctl(bpf, BIOCSETIF, &ifr) == -1)
97 if (ioctl(bpf, BIOCGDL
152 send_wakeup(int bpf, struct ether_addr const *addr) argument
186 int bpf, n, rval; local
[all...]
/freebsd-10.3-release/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c192 FILE *bpf; local
204 bpf = fopen(bootpfile, "r");
205 if ( ! bpf )
209 while ( fscanf(bpf, "%255s", hostname) > 0 && !match ) {
235 if (fclose(bpf))
244 pch = ch = getc(bpf);
246 pch = ch; ch = getc(bpf);
255 while ( ! res && (fscanf(bpf,"%s", info)) > 0) { /* read a string */
256 ch = getc(bpf); /* and a character */
265 while (isspace(ch) && ch != '\n') ch = getc(bpf);
295 FILE *bpf; local
[all...]
/freebsd-10.3-release/libexec/rbootd/
H A DMakefile5 SRCS= bpf.c conf.c parseconf.c rbootd.c rmpproto.c utils.c
/freebsd-10.3-release/contrib/ipfilter/ipsd/
H A DMakefile23 @echo " sunos4-bpf (SunOS4.1.x with BPF in the kernel)"
24 @echo " bsd-bpf (4.4BSD variant with BPF in the kernel)"
34 bpf sunos4-bpf :
46 bsd-bpf :
/freebsd-10.3-release/contrib/ntp/ntpd/
H A Drefclock_irig.c237 double bpf[9]; /* IRIG-B filter shift register */ member in struct:irigunit
527 irig_b = (up->bpf[8] = up->bpf[7]) * 6.505491e-001;
528 irig_b += (up->bpf[7] = up->bpf[6]) * -3.875180e+000;
529 irig_b += (up->bpf[6] = up->bpf[5]) * 1.151180e+001;
530 irig_b += (up->bpf[5] = up->bpf[4]) * -2.141264e+001;
531 irig_b += (up->bpf[
[all...]
H A Drefclock_chu.c383 double bpf[9]; /* IIR bandpass filter */ member in struct:chuunit
758 signal = (up->bpf[8] = up->bpf[7]) * 5.844676e-01;
759 signal += (up->bpf[7] = up->bpf[6]) * 4.884860e-01;
760 signal += (up->bpf[6] = up->bpf[5]) * 2.704384e+00;
761 signal += (up->bpf[5] = up->bpf[4]) * 1.645032e+00;
762 signal += (up->bpf[
[all...]
H A Drefclock_wwv.c933 static double bpf[9]; /* 1000/1200-Hz bpf delay line */ local
934 double syncx; /* bpf output */
982 memset((char *)bpf, 0, sizeof(bpf));
1055 syncx = (bpf[8] = bpf[7]) * 4.897278e-01;
1056 syncx += (bpf[7] = bpf[6]) * -2.765914e+00;
1057 syncx += (bpf[
[all...]
/freebsd-10.3-release/contrib/netbsd-tests/net/bpf/
H A Dt_div-by-zero.c4 #include <net/bpf.h>
41 fd = rump_sys_open("/dev/bpf", O_RDWR);
44 "bpf accepted program with division by zero");
H A Dh_bpf.h35 #include <net/bpf.h>
H A Dt_bpf.c39 #include <net/bpf.h>
60 atf_tc_set_md_var(tc, "descr", "Checks that writing to /dev/bpf "
86 RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
102 atf_tc_set_md_var(tc, "descr", "Checks that write to /dev/bpf "
159 RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
/freebsd-10.3-release/lib/libpcap/
H A DMakefile9 SRCS= grammar.y tokdefs.h version.h pcap-bpf.c \
16 INCS= pcap.h pcap-int.h pcap-namedb.h pcap-bpf.h
18 PCAPINCS= pcap/pcap.h pcap/namedb.h pcap/bpf.h
116 .PATH: ${PCAP_DISTDIR}/bpf/net
/freebsd-10.3-release/sbin/dhclient/
H A DMakefile36 SRCS= dhclient.c clparse.c alloc.c dispatch.c hash.c bpf.c options.c \
/freebsd-10.3-release/sys/modules/netgraph/
H A DMakefile10 bpf \
/freebsd-10.3-release/usr.bin/netstat/
H A DMakefile8 unix.c atalk.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c \
H A Dbpf.c28 __FBSDID("$FreeBSD: releng/10.3/usr.bin/netstat/bpf.c 200462 2009-12-13 03:14:06Z delphij $");
40 #include <net/bpf.h>
54 /* print bpf stats */
100 if (sysctlbyname("net.bpf.stats", NULL, NULL,
102 warn("failed to zero bpf counters");
105 if (sysctlbyname("net.bpf.stats", NULL, &size,
107 warn("net.bpf.stats");
117 if (sysctlbyname("net.bpf.stats", bd, &size,
119 warn("net.bpf.stats");
/freebsd-10.3-release/sys/net/
H A Dbpf_jitter.c50 #include <net/bpf.h>
H A Dif_fddisubr.c62 #include <net/bpf.h>
402 * Give bpf a chance at the packet.
566 fddi_ifattach(ifp, lla, bpf)
569 int bpf;
597 if (bpf)
604 fddi_ifdetach(ifp, bpf)
606 int bpf;
609 if (bpf)
H A Dif_iso88025subr.c66 #include <net/bpf.h>
97 iso88025_ifattach(struct ifnet *ifp, const u_int8_t *lla, int bpf) argument
128 if (bpf)
138 iso88025_ifdetach(ifp, bpf)
140 int bpf;
143 if (bpf)
488 * Give bpf a chance at the packet.
/freebsd-10.3-release/sys/net80211/
H A Dieee80211_monitor.c55 #include <net/bpf.h>
/freebsd-10.3-release/contrib/ipfilter/ipsend/
H A DMakefile34 @echo " sunos4-bpf (SunOS4.1.x with BPF in the kernel)"
35 @echo " bsd-bpf (4.4BSD variant with BPF in the kernel)"
66 bpf sunos4-bpf :
91 bsd-bpf :
H A Dsbpf.c23 #include <net/bpf.h>
71 fprintf(stderr, "no bpf devices available as /dev/bpfxx\n");
80 (void) sprintf(bpfname, "/dev/bpf%d", i);
86 fprintf(stderr, "no bpf devices available as /dev/bpfxx\n");
99 fprintf(stderr, "kernel bpf (v%d.%d) filter out of date:\n",
140 * output an IP packet onto a fd opened for /dev/bpf
/freebsd-10.3-release/sys/dev/ed/
H A Dif_ed_sic.c57 #include <net/bpf.h>
/freebsd-10.3-release/sys/dev/usb/net/
H A Dusb_ethernet.h46 #include <net/bpf.h>

Completed in 127 milliseconds

1234567891011>>