diff options
author | 2013-10-20 04:27:23 +0000 | |
---|---|---|
committer | 2013-10-20 04:27:23 +0000 | |
commit | 00d23b9834427af61b5c99d3fc6520a6aa7f7403 (patch) | |
tree | 4f172d9e197e49d79827c061369582e1c0dbed85 | |
parent | Parse the argument the -r option with atoll() to support dates past 2038 (diff) | |
download | wireguard-openbsd-00d23b9834427af61b5c99d3fc6520a6aa7f7403.tar.xz wireguard-openbsd-00d23b9834427af61b5c99d3fc6520a6aa7f7403.zip |
Document the ioctl commands of the new queueing system: DIOCADDQUEUE,
DIOCGETQUEUES, DIOCGETQUEUE, and DIOCGETQSTATS (the older version has
been renamed to DIOCGETALTQSTATS).
ok henning jmc
-rw-r--r-- | share/man/man4/pf.4 | 54 |
1 files changed, 49 insertions, 5 deletions
diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4 index a46b0f05f5e..9c3edf74321 100644 --- a/share/man/man4/pf.4 +++ b/share/man/man4/pf.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pf.4,v 1.79 2013/07/04 02:11:46 lteo Exp $ +.\" $OpenBSD: pf.4,v 1.80 2013/10/20 04:27:23 lteo Exp $ .\" .\" Copyright (C) 2001, Kjell Wooding. All rights reserved. .\" @@ -26,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: July 4 2013 $ +.Dd $Mdocdate: October 20 2013 $ .Dt PF 4 .Os .Sh NAME @@ -120,6 +120,15 @@ name indicates the anchor in which to append the rule. and .Va action are ignored. +.It Dv DIOCADDQUEUE Fa "struct pfioc_queue *q" +Add a queue. +.Bd -literal +struct pfioc_queue { + u_int32_t ticket; + u_int nr; + struct pf_queuespec queue; +}; +.Ed .It Dv DIOCADDALTQ Fa "struct pfioc_altq *pa" Add an ALTQ discipline or queue. .Bd -literal @@ -153,6 +162,41 @@ If is set to .Dv PF_GET_CLR_CNTR , the per-rule statistics on the requested rule are cleared. +.It Dv DIOCGETQUEUES Fa "struct pfioc_queue *pq" +Get a +.Va ticket +for subsequent +.Dv DIOCGETQUEUE +calls and the number +.Va nr +of queues in the active list. +.It Dv DIOCGETQUEUE Fa "struct pfioc_queue *pq" +Get the queueing discipline +by its number +.Va nr +using the +.Va ticket +obtained through a preceding +.Dv DIOCGETQUEUES +call. +.It Dv DIOCGETQSTATS Fa "struct pfioc_qstats *pq" +Get the statistics on a queue. +.Bd -literal +struct pfioc_qstats { + u_int32_t ticket; + u_int32_t nr; + struct pf_queuespec queue; + void *buf; + int nbytes; +}; +.Ed +.Pp +This call fills in a pointer to the buffer of statistics +.Va buf , +of length +.Va nbytes , +for the queue specified by +.Va nr . .It Dv DIOCGETALTQS Fa "struct pfioc_altq *pa" Get a .Va ticket @@ -171,10 +215,10 @@ using the obtained through a preceding .Dv DIOCGETALTQS call. -.It Dv DIOCGETQSTATS Fa "struct pfioc_qstats *pq" -Get the statistics on a queue. +.It Dv DIOCGETALTQSTATS Fa "struct pfioc_altqstats *pq" +Get the statistics on an ALTQ queue. .Bd -literal -struct pfioc_qstats { +struct pfioc_altqstats { u_int32_t ticket; u_int32_t nr; void *buf; |