diff options
author | Lawrence Teo <lteo@cvs.openbsd.org> | 2013-07-04 02:11:47 +0000 |
---|---|---|
committer | Lawrence Teo <lteo@cvs.openbsd.org> | 2013-07-04 02:11:47 +0000 |
commit | e181c2b6b4264069c35db79717a54785e71b85f8 (patch) | |
tree | 0b6c382c368d0cd7594b8884cef6f806ab15bb35 /share | |
parent | d19ed3bc8c3ddd3d029b6bf934bc692c9bb7ccd2 (diff) |
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
Diffstat (limited to 'share')
-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 |