Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2023 07:27:42 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d84a5e90185c - stable/12 - pf: fix error descriptions in the man page
Message-ID:  <202307190727.36J7RgqI020871@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d84a5e90185ccb06c7230381bb425a0fa8170672

commit d84a5e90185ccb06c7230381bb425a0fa8170672
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-07-12 11:17:14 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-07-19 07:27:08 +0000

    pf: fix error descriptions in the man page
    
    PR:             272459
    Submitted by:   alex@inferiorhumanorgans.com
    MFC after:      1 week
    
    (cherry picked from commit df56c8069a4c920392ac9fec0adfcc03d9607abc)
---
 share/man/man4/pf.4 | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4
index 8f25b7c7aebd..3b3237cb9295 100644
--- a/share/man/man4/pf.4
+++ b/share/man/man4/pf.4
@@ -302,8 +302,10 @@ calls.
 Nested anchors, since they are not directly attached to the given
 anchor, will not be included.
 This ioctl returns
-.Er EINVAL
-if the given anchor does not exist.
+.Er ENOENT
+if the parent anchor given at
+.Va path
+does not exist.
 .It Dv DIOCGETRULESET Fa "struct pfioc_ruleset *pr"
 Get a ruleset (i.e., an anchor)
 .Va name
@@ -315,10 +317,14 @@ the maximum number of which can be obtained from a preceding
 .Dv DIOCGETRULESETS
 call.
 This ioctl returns
-.Er EINVAL
-if the given anchor does not exist or
+.Er ENOENT
+if the parent anchor given by
+.Va path
+does not exist or
 .Er EBUSY
-if another process is concurrently updating a ruleset.
+if the index passed in by
+.Va nr
+is greater than the number of anchors.
 .It Dv DIOCADDSTATE Fa "struct pfioc_state *ps"
 Add a state entry.
 .Bd -literal



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307190727.36J7RgqI020871>