Re: Recursive macro expansion problems

2007-01-22 Thread Dmitry Medvedev
On Fri, Jan 19, 2007 at 07:20:11PM +0100, Xavier ROUX wrote: I am trying to reproduce the example below, given in the FAQ: host1 = 192.168.1.1 host2 = 192.168.1.2 all_hosts = { $host1 $host2 } I obtain this error: # pfctl -nf /etc/pf.conf /etc/pf.conf:48: syntax error /etc/pf.conf:83:

Recursive macro expansion problems

2007-01-19 Thread Xavier ROUX
Hello, I am trying to reproduce the example below, given in the FAQ: host1 = 192.168.1.1 host2 = 192.168.1.2 all_hosts = { $host1 $host2 } This sample works with a host type macro but network type macro, like following lines, do not work. int_lan = 172.16.1.0/24 rel_int_lan = 172.16.2.0/24

Re: Recursive macro expansion problems

2006-05-26 Thread Siju George
On 5/24/06, Daniel Hartmeier [EMAIL PROTECTED] wrote: On Tue, May 23, 2006 at 03:31:46PM -0700, andrew fresh wrote: host_list = { $hosts } port_list = { $ports } Try adding q_host_list = '{' $hosts '}' q_port_list = '{' $ports '}' Thankyou s much for the clarification Danny :-) The

Re: Recursive macro expansion problems

2006-05-26 Thread Daniel Hartmeier
On Fri, May 26, 2006 at 11:09:51AM +0530, Siju George wrote: host1 = 192.168.1.1 host2 = 192.168.1.2 all_hosts = { $host1 $host2 } is that an error ? No, it's correct if you want to use $all_hosts in a

Recursive macro expansion problems

2006-05-23 Thread andrew fresh
I am running into some trouble with recursive macro expansion, here is the pf.conf that shows what I am seeing. --- pf.conf --- # I am having some trouble with pfctl and recursive macros. I was # hoping to use nested lists, and that is where I noticed these issues. # I sure wish nested lists

Re: Recursive macro expansion problems

2006-05-23 Thread Daniel Hartmeier
On Tue, May 23, 2006 at 03:31:46PM -0700, andrew fresh wrote: host_list = { $hosts } port_list = { $ports } Try adding q_host_list = '{' $hosts '}' q_port_list = '{' $ports '}' then replace end_03 = proto tcp from $host_list to any port $port_list with end_03 = proto tcp from

Re: Recursive macro expansion problems

2006-05-23 Thread andrew fresh
On Wed, May 24, 2006 at 01:55:34AM +0200, Daniel Hartmeier wrote: On Tue, May 23, 2006 at 03:31:46PM -0700, andrew fresh wrote: host_list = { $hosts } port_list = { $ports } Try adding q_host_list = '{' $hosts '}' q_port_list = '{' $ports '}' then replace end_03 = proto