summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ng_bpf.4
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man4/ng_bpf.4')
-rw-r--r--share/man/man4/ng_bpf.414
1 files changed, 7 insertions, 7 deletions
diff --git a/share/man/man4/ng_bpf.4 b/share/man/man4/ng_bpf.4
index 4f89729..44a51e3 100644
--- a/share/man/man4/ng_bpf.4
+++ b/share/man/man4/ng_bpf.4
@@ -35,7 +35,7 @@
.\" $FreeBSD$
.\" $Whistle: ng_bpf.8,v 1.2 1999/12/03 01:57:12 archie Exp $
.\"
-.Dd May 30, 2007
+.Dd November 13, 2012
.Dt NG_BPF 4
.Os
.Sh NAME
@@ -81,7 +81,7 @@ This node type supports any number of hooks having arbitrary names.
.Sh CONTROL MESSAGES
This node type supports the generic control messages, plus the following:
.Bl -tag -width foo
-.It Dv NGM_BPF_SET_PROGRAM
+.It Dv NGM_BPF_SET_PROGRAM Pq Ic setprogram
This command sets the filter program that will be applied to incoming
data on a hook.
The following structure must be supplied as an argument:
@@ -90,7 +90,7 @@ struct ng_bpf_hookprog {
char thisHook[NG_HOOKSIZ]; /* name of hook */
char ifMatch[NG_HOOKSIZ]; /* match dest hook */
char ifNotMatch[NG_HOOKSIZ]; /* !match dest hook */
- int32_t bpf_prog_len; /* #isns in program */
+ int32_t bpf_prog_len; /* #insns in program */
struct bpf_insn bpf_prog[]; /* bpf program */
};
.Ed
@@ -112,25 +112,25 @@ The program must be a valid
program or else
.Er EINVAL
is returned.
-.It Dv NGM_BPF_GET_PROGRAM
+.It Dv NGM_BPF_GET_PROGRAM Pq Ic getprogram
This command takes an
.Tn ASCII
string argument, the hook name, and returns the
corresponding
.Dv "struct ng_bpf_hookprog"
as shown above.
-.It Dv NGM_BPF_GET_STATS
+.It Dv NGM_BPF_GET_STATS Pq Ic getstats
This command takes an
.Tn ASCII
string argument, the hook name, and returns the
statistics associated with the hook as a
.Dv "struct ng_bpf_hookstat" .
-.It Dv NGM_BPF_CLR_STATS
+.It Dv NGM_BPF_CLR_STATS Pq Ic clrstats
This command takes an
.Tn ASCII
string argument, the hook name, and clears the
statistics associated with the hook.
-.It Dv NGM_BPF_GETCLR_STATS
+.It Dv NGM_BPF_GETCLR_STATS Pq Ic getclrstats
This command is identical to
.Dv NGM_BPF_GET_STATS ,
except that the statistics are also atomically cleared.
OpenPOWER on IntegriCloud