On 04/17/2009 04:10:35 AM, Helmut Schneider wrote:
Helmut Schneider <jumpe...@gmx.de> wrote:

can I group tables? Or specify something like

myNet1="192.168.0.0/24"
myNet2="192.168.1.0/24"
otherNet1="192.168.2.0/24"
otherNet2="192.168.3.0/24"

table <myNet> { $myNet1, $myNet2 }
table <otherNet> { $otherNet1, $otherNet2 }
table <friendlyNet> { <myNet>, <otherNet> }

internet = ! { <myNet>, <friendlyNet> }
internet = ! "{" <myNet> <friendlyNet> "}"
...

Purpose is to create an object called "internet" which excludes all my
known  networks/objects.

[ ] It's not possible
[ ] RFTM
[ ] What was the question?

To start with you need to recognize that macros won't do
the trick.  You need to put everything you want to
exclude into a single table.  A macro will expand
into two rules, so what does not match one rule will
match the other when you negate the macro's test.

Karl <k...@meme.com>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

Reply via email to