On Sat, 9 Nov 2002, Danny Kj�rgaard wrote:

> Hi
>
> I was writing a pf.conf with a macro containing other macros. I got a
> syntax error i thought that couldnt be true, but is it? Cant a macro
> contain other macros.
>
> [pf.conf]
>
> ip="{ $ip1, $ip2, $ip3 }"
>
> [pf.conf]

This is clearly explained in pf.conf(5)

MACROS
     pfctl supports macro definition and expansion like:

         ext_if = "kue0"
         pass out on $ext_if           from any to any         keep state
         pass in  on $ext_if proto tcp from any to any port 25 keep state

     Macro names must start with a letter and may contain letters, digits and
     underscores.  Macro names may not be pf reserved words (e.g.  pass, in,
     out).  Macros are not expanded recursively.
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Cheers,

Dries
-- 
Dries Schellekens
email: [EMAIL PROTECTED]

Reply via email to