diff options
author | 2013-07-04 02:11:46 +0000 | |
---|---|---|
committer | 2013-07-04 02:11:46 +0000 | |
commit | 5a145e4ba322fce35a6c0b4d6707a37c1ac8a760 (patch) | |
tree | c9b68c727c634bf66dac0ddcd9f9c64ed4e461e2 | |
parent | Merge rev 1.16 of cl.c: time_t is not long (diff) | |
download | wireguard-openbsd-5a145e4ba322fce35a6c0b4d6707a37c1ac8a760.tar.xz wireguard-openbsd-5a145e4ba322fce35a6c0b4d6707a37c1ac8a760.zip |
Fix two errors:
- DIOCSETSTATUSIF uses struct pfioc_iface, not pfioc_if. The definition
of pfioc_iface is already listed under DIOCIGETIFACES, so move the
description of DIOCSETSTATUSIF below DIOCIGETIFACES.
- DIOCKILLSRCNODES uses struct pfioc_src_node_kill, not pfioc_iface.
Add the definition of pfioc_src_node_kill while here.
ok henning jmc mikeb
-rw-r--r-- | share/man/man4/pf.4 | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4 index 42efd0e1dc9..a46b0f05f5e 100644 --- a/share/man/man4/pf.4 +++ b/share/man/man4/pf.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pf.4,v 1.78 2013/07/04 00:18:59 guenther Exp $ +.\" $OpenBSD: pf.4,v 1.79 2013/07/04 02:11:46 lteo Exp $ .\" .\" Copyright (C) 2001, Kjell Wooding. All rights reserved. .\" @@ -265,13 +265,6 @@ but ignores all fields of the .Vt pfioc_state_kill structure, except .Va psk_ifname . -.It Dv DIOCSETSTATUSIF Fa "struct pfioc_if *pi" -Specify the interface for which statistics are accumulated. -.Bd -literal -struct pfioc_if { - char ifname[IFNAMSIZ]; -}; -.Ed .It Dv DIOCGETSTATUS Fa "struct pf_status *s" Get the internal packet filter statistics. .Bd -literal @@ -986,6 +979,8 @@ struct pfi_kif { TAILQ_HEAD(, pfi_dynaddr) pfik_dynaddrs; }; .Ed +.It Dv DIOCSETSTATUSIF Fa "struct pfioc_iface *pi" +Specify the interface for which statistics are accumulated. .It Dv DIOCSETIFFLAG Fa "struct pfioc_iface *io" Set the user settable flags (described above) of the .Nm @@ -999,8 +994,16 @@ The filtering process is the same as for Works as .Dv DIOCSETIFFLAG above but clears the flags. -.It Dv DIOCKILLSRCNODES Fa "struct pfioc_iface *io" +.It Dv DIOCKILLSRCNODES Fa "struct pfioc_src_node_kill *psnk" Explicitly remove source tracking nodes. +.Bd -literal +struct pfioc_src_node_kill { + sa_family_t psnk_af; + struct pf_rule_addr psnk_src; + struct pf_rule_addr psnk_dst; + u_int psnk_killed; +}; +.Ed .El .Sh FILES .Bl -tag -width /dev/pf -compact |