Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2025 10:33:02 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: 85c333a947e9 - main - =?utf-8?Q?pf.conf.5: fix =E2=89=A4?=
Message-ID:  <202502111033.51BAX2xe043185@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=85c333a947e950d9267517afd1d9c30a655b7bfb

commit 85c333a947e950d9267517afd1d9c30a655b7bfb
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-02-05 14:52:15 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-02-11 10:32:22 +0000

    pf.conf.5: fix ≤
    
    pf.conf expects <=, not ≤ (and the same applies to ≥ and >=).
    Make sure the man page reflects this.
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 share/man/man5/pf.conf.5 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5
index c438cfc6894b..4020243c521b 100644
--- a/share/man/man5/pf.conf.5
+++ b/share/man/man5/pf.conf.5
@@ -1870,9 +1870,9 @@ Ports and ranges of ports are specified by using these operators:
 =	(equal)
 !=	(unequal)
 \*(Lt	(less than)
-\*(Le	(less than or equal)
+<=	(less than or equal)
 \*(Gt	(greater than)
-\*(Ge	(greater than or equal)
+>=	(greater than or equal)
 :	(range including boundaries)
 \*(Gt\*(Lt	(range excluding boundaries)
 \*(Lt\*(Gt	(except range)
@@ -1913,7 +1913,7 @@ pass in all
 pass in from any to any
 pass in proto tcp from any port \*(Lt 1024 to any
 pass in proto tcp from any to any port 25
-pass in proto tcp from 10.0.0.0/8 port \*(Ge 1024 \e
+pass in proto tcp from 10.0.0.0/8 port >= 1024 \e
       to ! 10.1.2.3 port != ssh
 pass in proto tcp from any os "OpenBSD"
 .Ed
@@ -3425,7 +3425,7 @@ os             = "os"  ( os-name | "{" os-list "}" )
 user           = "user" ( unary-op | binary-op | "{" op-list "}" )
 group          = "group" ( unary-op | binary-op | "{" op-list "}" )
 
-unary-op       = [ "=" | "!=" | "\*(Lt" | "\*(Le" | "\*(Gt" | "\*(Ge" ]
+unary-op       = [ "=" | "!=" | "\*(Lt" | "<=" | "\*(Gt" | ">=" ]
                  ( name | number )
 binary-op      = number ( "\*(Lt\*(Gt" | "\*(Gt\*(Lt" | ":" ) number
 op-list        = ( unary-op | binary-op ) [ [ "," ] op-list ]



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