https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291318

--- Comment #4 from Wes Morgan <[email protected]> ---
It seems really odd that the mistake does precisely what is described.

If you look at the code, using -T load (or even -Tl, as in the man page), adds
the PFCTL_FLAG_TABLE to loadopts. This flag is checked in several places,
including the parser yacc file line 1730:

if (pf->loadopt & PFCTL_FLAG_TABLE)
    if (process_tabledef($3, &$5, pf->opts)) {
        free($3);
        YYERROR;
    }

Line 3347 sets loadopt to ~0 when no flags are specified, ensuring that
PFCTL_FLAG_TABLE is set so tables are loaded. There is no other way to specify
just loading tables. For anchors, loadopt has the flag added on line 3375,
although that looks like it might be buggy because it forces loading an anchor
to load rules, tables, etc ignoring what was specified on the command line.

How does one just load tables in a ruleset otherwise?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to