summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-03-26 20:18:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-03-26 20:18:54 +0000
commit444451b49125ced948c90fa20fbe326d7e57379c (patch)
tree4d2f633136e7f9c1f1821975273489755ded1097 /share/man
parent62c280912c41c7a2746ba2b400dc0203f3f4e86e (diff)
fix a bunch of errors
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/bpf.420
1 files changed, 10 insertions, 10 deletions
diff --git a/share/man/man4/bpf.4 b/share/man/man4/bpf.4
index 01c2401402c..be4f832a4fc 100644
--- a/share/man/man4/bpf.4
+++ b/share/man/man4/bpf.4
@@ -114,12 +114,12 @@ Sets the buffer length for reads on
.I bpf
files. The buffer must be set before the file is attached to an interface
with BIOCSETIF.
-If the requested buffer size cannot be accomodated, the closest
+If the requested buffer size cannot be accommodated, the closest
allowable size will be set and returned in the argument.
A read call will result in EIO if it is passed a buffer that is not this size.
.TP 10
.B BIOCGDLT (u_int)
-Returns the type of the data link layer underyling the attached interface.
+Returns the type of the data link layer underlying the attached interface.
EINVAL is returned if no interface has been specified.
The device types, prefixed with ``DLT_'', are defined in <net/bpf.h>.
.TP 10
@@ -140,7 +140,7 @@ and resets the statistics that are returned by BIOCGSTATS.
.TP 10
.B BIOCGETIF (struct ifreq)
Returns the name of the hardware interface that the file is listening on.
-The name is returned in the if_name field of
+The name is returned in the ifr_name field of
.I ifr.
All other fields are undefined.
.TP 10
@@ -148,7 +148,7 @@ All other fields are undefined.
Sets the hardware interface associate with the file. This
command must be performed before any packets can be read.
The device is indicated by name using the
-.I if_name
+.I ifr_name
field of the
.I ifreq.
Additionally, performs the actions of BIOCFLUSH.
@@ -223,7 +223,7 @@ Also, the actions of BIOCFLUSH are performed.
See section \fBFILTER MACHINE\fP for an explanation of the filter language.
.TP 10
.B BIOCVERSION (struct bpf_version)
-Returns the major and minor version numbers of the filter languange currently
+Returns the major and minor version numbers of the filter language currently
recognized by the kernel. Before installing a filter, applications must check
that the current version is compatible with the running kernel. Version
numbers are compatible if the major numbers match and the application minor
@@ -381,11 +381,11 @@ struct bpf_insn {
.ft R
.RE
-The \fIk\fP field is used in differnet ways by different insutructions,
+The \fIk\fP field is used in different ways by different instructions,
and the \fIjt\fP and \fIjf\fP fields are used as offsets
-by the branch intructions.
+by the branch instructions.
The opcodes are encoded in a semi-hierarchical fashion.
-There are eight classes of intructions: BPF_LD, BPF_LDX, BPF_ST, BPF_STX,
+There are eight classes of instructions: BPF_LD, BPF_LDX, BPF_ST, BPF_STX,
BPF_ALU, BPF_JMP, BPF_RET, and BPF_MISC. Various other mode and
operator bits are or'd into the class to give the actual instructions.
The classes and modes are defined in <net/bpf.h>.
@@ -446,7 +446,7 @@ A <- M[k]
.TP 10
.B BPF_LDX
These instructions load a value into the index register. Note that
-the addressing modes are more retricted than those of the accumulator loads,
+the addressing modes are more restricted than those of the accumulator loads,
but they include
.B BPF_MSH,
a hack for efficiently loading the IP header length.
@@ -603,7 +603,7 @@ accept k bytes
.B BPF_MISC
The miscellaneous category was created for anything that doesn't
fit into the above classes, and for any new instructions that might need to
-be added. Currently, these are the register transfer intructions
+be added. Currently, these are the register transfer instructions
that copy the index register to the accumulator or vice versa.
.RS
.TP 30