From nobody Wed Jul 19 07:27:42 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 4R5S8G5rf6z4dPdY; Wed, 19 Jul 2023 07:27:42 +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 4R5S8G4lcfz3JFt; Wed, 19 Jul 2023 07:27:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689751662; 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=vFLpqGcX/gu2eVLZKDq0D0FdqzHrKEWt8bLttzfF0Gc=; b=gjceH//+VSwC5iVj+JQ8BoEY2InNHWULVokepxmjVb9Akbe7q3KMr2SXKCfZ3oQ+LzO0MZ f4zwDa9A8t2JcYM+1sGVsqMojz+tLVKAzKnBsd+MALMPhmgoROcAHEWt1jPHTls5TT24sD Nq+2JYaZnZ4po0iblVwncECwFVtT836P0qfPFhKjD73d0Tld3FuITrQS0N152M4pkYanzz SXjZePVBu1c2NsXhnPtLRlcLrfDFcnszMDA97lICd6hNE1T/zOxQrZDfMxTP7vlwrDkO5h IKvEid3wb5WN2E39+kIsNWVphHgMT+IUNBeUS36M8FIXtJ+PoIVJwk4wdfVV3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689751662; 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=vFLpqGcX/gu2eVLZKDq0D0FdqzHrKEWt8bLttzfF0Gc=; b=YDUHq+CJtLGwttbxmVMn2bCnB5IIaRK3gosGxKI57QSBg8es74UWY6x1pq0gGKx2Ex6kQH P9lCizpblq1rFv1nC8B7GdN2PxqLvRpbvhyTyzEcgP1WvZF5Nav0xlt72qRcFLie+GWvIZ EJrdF4Ai6Mn3OSJu4cHu3fM4/v1xByQ7ZvsHcYNSLJMXdp/DPPyjaxJonrIpv+FmQFA+Ny VVKCsmAwMSqym1HlPFqmoi/5Gv7pLj9M+nwwhjJ1/d2sOlPk2z9ulkfEiEoU1unw9+V2Lj P0giY7uUOkZGW3YIhPw7Mb6ySAQZWCDVzyG/Y2y3y/kjjB04z+P2AdyT+at2Ag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689751662; a=rsa-sha256; cv=none; b=QtWb1hfLzK0aQ+49L4djeTnzXc8VnpfnIAZYbciZ1ojdehC1Vj6EE/cdUGFChjfyGJy67Z EgkMs9qXjhtViL+AWXBhk49+fNVansPYPvc5HA7WEz+w1o0/VUz937Zhx5LruMAGj97qMe y75zgisigiFiNgkXzho0cAt8/+LatBN2eYvbpAYO2DgUVV575/UNURrQHTupvCarhCZgkI uuNdlWzi+XegSUuj0VxWe+jtgRxpEugpBmeG2VwXOCT3y92Pymx1aC3q7TcJLBqGZAycJS 1850oQDeJNujhCHP10Dj6B5OatOKeY7CLnr1hI/Tpg60fbRrxMRUaxA8LzrPdA== 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 4R5S8G3sCkzdxr; Wed, 19 Jul 2023 07:27:42 +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 36J7Rgc3020853; Wed, 19 Jul 2023 07:27:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36J7Rgv4020852; Wed, 19 Jul 2023 07:27:42 GMT (envelope-from git) Date: Wed, 19 Jul 2023 07:27:42 GMT Message-Id: <202307190727.36J7Rgv4020852@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 504ddc193214 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 504ddc1932149318c094bd890229dca297a4874f Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=504ddc1932149318c094bd890229dca297a4874f commit 504ddc1932149318c094bd890229dca297a4874f Author: Kristof Provost AuthorDate: 2023-07-12 11:17:14 +0000 Commit: Kristof Provost CommitDate: 2023-07-19 07:27:06 +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