Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2025 08:21:58 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 306f29475fce - main - pf.conf.5: 'address' is mandatory with route-to
Message-ID:  <202510070821.5978LwXA067729@gitrepo.freebsd.org>

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

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

commit 306f29475fcefcca0a32d1cd764eabf7b2e441f8
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-10-07 08:13:23 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-10-07 08:21:45 +0000

    pf.conf.5: 'address' is mandatory with route-to
    
    Adjust the BNF, and don't claim it is optional in the text.
    
    PR:             290059
    MFC after:      3 days
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 share/man/man5/pf.conf.5 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5
index da02f10aac01..41410d6bc0fa 100644
--- a/share/man/man5/pf.conf.5
+++ b/share/man/man5/pf.conf.5
@@ -27,7 +27,7 @@
 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd August 28, 2025
+.Dd October 7, 2025
 .Dt PF.CONF 5
 .Os
 .Sh NAME
@@ -2377,7 +2377,7 @@ packets matching the same connection.
 .It Ar route-to
 The
 .Ar route-to
-option routes the packet to the specified interface with an optional address
+option routes the packet to the specified interface with an address
 for the next hop.
 When a
 .Ar route-to
@@ -3552,7 +3552,7 @@ hosts          = "all" |
 ipspec         = "any" | host | "{" host-list "}"
 host           = [ "!" ] ( address [ "/" mask-bits ] | "<" string ">" )
 redirhost      = address [ "/" mask-bits ]
-routehost      = "(" interface-name [ address [ "/" mask-bits ] ] ")"
+routehost      = "(" interface-name address [ "/" mask-bits ] ")"
 address        = ( interface-name | interface-group |
                  "(" ( interface-name | interface-group ) ")" |
                  hostname | ipv4-dotted-quad | ipv6-coloned-hex )



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