summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-07-11 08:29:35 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-07-11 08:29:35 +0000
commitc73c636f2c907224522d0e6d0a3236358cf6dc42 (patch)
tree9a1514b5dc0123431524bef7d9844d8a54ed8621 /regress/sbin/pfctl
parent97df176d62deb7a0a22b455c059a83518aa54578 (diff)
Better parsing and -v support for tables:
- remove the tableaddrs and tableaddr yacc production and reuse host_list instead. - produce better error messages. - do not load addresses from external file when it is not required (like with -R option). - store initializers in a new node_tinit linked list before putting them into the address buffer (see next point). - add a new print_tabledef() function, which makes "pfctl -nvf" print something useful for table definitions, which in turn makes it possible to write better regress tests (see first chunk of the diff) and bring table definition consistant with other parsed rules. ok dhartmei@
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/pf48.ok2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pf48.ok b/regress/sbin/pfctl/pf48.ok
index 10da0726fb1..a2b2aa8442a 100644
--- a/regress/sbin/pfctl/pf48.ok
+++ b/regress/sbin/pfctl/pf48.ok
@@ -1,3 +1,5 @@
+table <regress> { 1.2.3.4 !5.6.7.8 10.0.0.0/8 127.0.0.1 ::1 fe80::1 }
+table <regress.1> const { ::1 fe80::/64 ::1 127.0.0.1 }
scrub in from <regress.1> to any fragment reassemble
scrub in from ! <regress.2> to any fragment reassemble
scrub out from any to ! <regress.1> fragment reassemble