From nobody Wed Jul 12 13:26:31 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R1JRW4c91z2tn40; Wed, 12 Jul 2023 13:26:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R1JRW2Zx7z3CmP; Wed, 12 Jul 2023 13:26:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689168391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wunE5/S4LYH6DUXvwSfEAaXd/Yluu8NmBfG28G8NBzE=; b=bimo90ZyTTbxt9dcHuuHyPUGAxjbZo+YhnBl7zq/mOAIuFO200cJR3uun3CzVLAto5Obh8 Y6pEzGHT8q70E0dQl7Myp/bXegLWbmtSLtOMxmTDsd1KFc3QDq+ISLNjWDD7Pc2OKnD4+I mnRpW0jOLNdYyT9mlI+DQRZOLMTIefBg+kwaghECl2SSsTaHY45yyokPnSWE9OXUO5wEem jNDsg0KAdkfMgt4DJ9P8H0h4wZJpI5leWsXRXZXwa8ztXExLq4RRROCfkU9R3r6KPS/QKV VVSCvE3sLz9HfxVOiwB+JlFYWVOiM+Xz6a2ekQkA9ISIHCZJFf5958jpDuy9zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689168391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wunE5/S4LYH6DUXvwSfEAaXd/Yluu8NmBfG28G8NBzE=; b=ZYKD4Bxgnt4A8vRmyQkRSa7OykXi6cd9KdXYnDKoM0dsZZVc42I53FhwHkOr4uHwa7mv7o cMkbWNzvpODin6s9klzIE0VU4gFEe2EXF3QK1MwfovTYMG7suZuU9YxQ5ZE7ZCx6NQEs0s HwMbG7I6DCQUZ8WvdaTR/nLJTM71Lpvmu8DVIg8PUSsNvcbofserZhEp+fzIep6oBnU7Ck 5WOF7fsTUI9dr3MDwbhuB+ZQYMmFom0cy7D0TVMmwYZpaPky5ZUR9qBRDrhonNjmxdDxWd rrgxjc2y8pFWNwyfwRy2neJzUjQXKsV40cPgCtHRrCIm7mKXNuZMLeyywcU1DA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689168391; a=rsa-sha256; cv=none; b=VIoXDopZIXXNHRQb1b0LMEt0dEuWRfXtVcOuIKc0vZ6UHzHsUsfqGjcmgcYgaTckG4MszA 5wuiO1MOkM8AV/WJ2PesFZrSwZ34HX2PZtniQqoEzXHfmNW8i0L0B94Bz48/8zERjpBA3m bDAOr2GDiG5HsBCQnuer6bM8ipXaA+1jzV2SxMQK4OHMgd7MJ8u9hDBJtW+R80rmMoFFTK frT67Bf3HtLYeZsFHHW0StzDOmEf3XE4IBWrMJ2FP6PYANySoGBOlS/FfFPert2Hit/Mak Jy+lULyUbkaUANNooKj8tdU65j5MppHJRRIR6kYjD9Pe25EeI0R1EXPl5F2ReQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R1JRW1SzWz191P; Wed, 12 Jul 2023 13:26:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36CDQVef027868; Wed, 12 Jul 2023 13:26:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36CDQVuf027866; Wed, 12 Jul 2023 13:26:31 GMT (envelope-from git) Date: Wed, 12 Jul 2023 13:26:31 GMT Message-Id: <202307121326.36CDQVuf027866@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: df56c8069a4c - main - pf: fix error descriptions in the man page List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: df56c8069a4c920392ac9fec0adfcc03d9607abc Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=df56c8069a4c920392ac9fec0adfcc03d9607abc commit df56c8069a4c920392ac9fec0adfcc03d9607abc Author: Kristof Provost AuthorDate: 2023-07-12 11:17:14 +0000 Commit: Kristof Provost CommitDate: 2023-07-12 11:17:14 +0000 pf: fix error descriptions in the man page PR: 272459 Submitted by: alex@inferiorhumanorgans.com MFC after: 1 week --- 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