On Tue, Sep 11, 2018 at 12:17:05PM +0200, Klemens Nanni wrote:
> Anchor names beginning with '_' are reserved for internal use, but this
> particular case still works:
My example is not exclusive; this effects all tables within special
anchors including those automatically created by the ruleset optimizer.

New diff flags mentioned in the same order as they appear in the
synopsis.

OK?

Index: pfctl.8
===================================================================
RCS file: /cvs/src/sbin/pfctl/pfctl.8,v
retrieving revision 1.171
diff -u -p -r1.171 pfctl.8
--- pfctl.8     11 Aug 2017 22:30:38 -0000      1.171
+++ pfctl.8     11 Sep 2018 21:59:21 -0000
@@ -94,8 +94,9 @@ The options are as follows:
 Apply flags
 .Fl f ,
 .Fl F ,
+.Fl s ,
 and
-.Fl s
+.Fl t
 only to the rules in the specified
 .Ar anchor .
 In addition to the main ruleset,
Index: pfctl.c
===================================================================
RCS file: /cvs/src/sbin/pfctl/pfctl.c,v
retrieving revision 1.359
diff -u -p -r1.359 pfctl.c
--- pfctl.c     8 Sep 2018 14:45:55 -0000       1.359
+++ pfctl.c     11 Sep 2018 21:59:21 -0000
@@ -2498,8 +2498,8 @@ main(int argc, char *argv[])
 
        memset(anchorname, 0, sizeof(anchorname));
        if (anchoropt != NULL) {
-               if (mode == O_RDONLY && showopt == NULL) {
-                       warnx("anchors apply to -f, -F and -s only");
+               if (mode == O_RDONLY && showopt == NULL && tblcmdopt == NULL) {
+                       warnx("anchors apply to -f, -F, -s and -t only");
                        usage();
                }
                if (mode == O_RDWR &&

Reply via email to