summaryrefslogtreecommitdiff
path: root/share/man/man4
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-02-18 13:11:45 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-02-18 13:11:45 +0000
commiteb2ef85dc6e63b8f2819256c12559a69f528fea5 (patch)
tree5f196c9d5605c9c7afa23f1437f30f650d3a57cb /share/man/man4
parent1c77d48cef6cfdd244d5009e27be22dbb488b2b9 (diff)
Change ps_len of struct pfioc_states and psn_len of struct
pfioc_src_nodes to size_t. This avoids integer truncation by casts to unsigned. As the types of DIOCGETSTATES and DIOCGETSRCNODES ioctl(2) arguments change, pfctl(8) and systat(1) should be updated together with the kernel. Calculate number of pf(4) states as size_t in userland. OK sashan@ deraadt@
Diffstat (limited to 'share/man/man4')
-rw-r--r--share/man/man4/pf.48
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4
index 46f88ade1ec..a30d8f6b1e7 100644
--- a/share/man/man4/pf.4
+++ b/share/man/man4/pf.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pf.4,v 1.90 2018/12/21 11:16:04 kn Exp $
+.\" $OpenBSD: pf.4,v 1.91 2019/02/18 13:11:44 bluhm 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: December 21 2018 $
+.Dd $Mdocdate: February 18 2019 $
.Dt PF 4
.Os
.Sh NAME
@@ -327,7 +327,7 @@ man page for a list of valid debug levels.
Get state table entries.
.Bd -literal
struct pfioc_states {
- int ps_len;
+ size_t ps_len;
union {
caddr_t psu_buf;
struct pfsync_state *psu_states;
@@ -885,7 +885,7 @@ number until the ioctl returns
.It Dv DIOCGETSRCNODES Fa "struct pfioc_src_nodes *psn"
.Bd -literal
struct pfioc_src_nodes {
- int psn_len;
+ size_t psn_len;
union {
caddr_t psu_buf;
struct pf_src_node *psu_src_nodes;