summaryrefslogtreecommitdiffstats
path: root/share/man/man4/bpf.4
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-08-23 17:08:59 +0000
committercsjp <csjp@FreeBSD.org>2005-08-23 17:08:59 +0000
commitf1635380acf03034a82c621f2b61d7f1bd6b59a0 (patch)
treefb9dd16b4ffece9a8cb3fb2f213617800781762b /share/man/man4/bpf.4
parentbc08e8e9deb8134199a83444468e380fc57a6741 (diff)
downloadFreeBSD-src-f1635380acf03034a82c621f2b61d7f1bd6b59a0.zip
FreeBSD-src-f1635380acf03034a82c621f2b61d7f1bd6b59a0.tar.gz
Add documentation for the BIOCLOCK and BIOCSETWF ioctl commands. Also
modify the documentation for BIOCSETF to note that it sets the read filter. Pointed out by: simon
Diffstat (limited to 'share/man/man4/bpf.4')
-rw-r--r--share/man/man4/bpf.411
1 files changed, 10 insertions, 1 deletions
diff --git a/share/man/man4/bpf.4 b/share/man/man4/bpf.4
index d9cb0ce..2839dad 100644
--- a/share/man/man4/bpf.4
+++ b/share/man/man4/bpf.4
@@ -231,7 +231,7 @@ which must respond to messages in real time.
The default for a new file is off.
.It Dv BIOCSETF
.Pq Li "struct bpf_program"
-Sets the filter program used by the kernel to discard uninteresting
+Sets the read filter program used by the kernel to discard uninteresting
packets.
An array of instructions and its length is passed in using
the following structure:
@@ -255,6 +255,11 @@ are performed.
See section
.Sx "FILTER MACHINE"
for an explanation of the filter language.
+.It Dv BIOCSETWF
+.Pq Li "struct bpf_program"
+Sets the write filter program used by the kernel to control what type of
+packets can be written to the interface. See the BIOCSETF command for more
+information on the bpf filter program.
.It Dv BIOCVERSION
.Pq Li "struct bpf_version"
Returns the major and minor version numbers of the filter language currently
@@ -301,6 +306,10 @@ Set to zero to see only incoming packets on the interface.
Set to one to see packets originating locally and remotely on the interface.
This flag is initialized to one by
default.
+.It Dv BIOCLOCK
+Set the locked flag on the bpf descriptor. This prevents the execution of
+ioctl commands which could change the underlying operating parameters of
+the device.
.El
.Sh BPF HEADER
The following structure is prepended to each packet returned by
OpenPOWER on IntegriCloud