summaryrefslogtreecommitdiffstats
path: root/share/man/man4/bpf.4
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-11-20 18:41:33 +0000
committerru <ru@FreeBSD.org>2000-11-20 18:41:33 +0000
commit0100fd6e93e8e0203ec077685f3e68afea54de52 (patch)
treeb87583b730938778b4af11a44748d110d751f3ac /share/man/man4/bpf.4
parent0127deea8c3ecf9b2bcefaa370c23b1d51b0720c (diff)
downloadFreeBSD-src-0100fd6e93e8e0203ec077685f3e68afea54de52.zip
FreeBSD-src-0100fd6e93e8e0203ec077685f3e68afea54de52.tar.gz
mdoc(7) police: use the new features of the Nm macro.
Diffstat (limited to 'share/man/man4/bpf.4')
-rw-r--r--share/man/man4/bpf.48
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man4/bpf.4 b/share/man/man4/bpf.4
index ff57584..805770b 100644
--- a/share/man/man4/bpf.4
+++ b/share/man/man4/bpf.4
@@ -60,7 +60,7 @@ will be set to
.Er EBUSY .
.Pp
Associated with each open instance of a
-.Nm bpf
+.Nm
file is a user-settable packet filter.
Whenever a packet is received by an interface,
all file descriptors listening on that interface apply their filter.
@@ -70,7 +70,7 @@ Reads from these files return the next group of packets
that have matched the filter.
To improve performance, the buffer passed to read must be
the same size as the buffers used internally by
-.Nm bpf .
+.Nm .
This size is returned by the
.Dv BIOCGBLEN
ioctl (see below), and
@@ -85,14 +85,14 @@ headers. Currently, only Ethernet,
and
.Tn PPP
drivers have been modified to interact with
-.Nm bpf .
+.Nm .
.Pp
Since packet data is in network byte order, applications should use the
.Xr byteorder 3
macros to extract multi-byte values.
.Pp
A packet can be sent out on the network by writing to a
-.Nm bpf
+.Nm
file descriptor. The writes are unbuffered, meaning only one
packet can be processed per write.
Currently, only writes to Ethernets and
OpenPOWER on IntegriCloud