From fb3ed310b75d0d53af80c050c222a6a4259cd683 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 26 Mar 1997 20:18:53 +0000 Subject: [PATCH] fix a bunch of errors --- share/man/man4/bpf.4 | 20 ++++++++++---------- 1 file 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 . .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 . @@ -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 -- 2.20.1