summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_parser.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-07-06 13:26:42 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-07-06 13:26:42 +0000
commit1902c78559ad9225aeda2c22f42147de73f843de (patch)
tree8b5d36570320b4fff61b76d42193727c548c318c /sbin/pfctl/pfctl_parser.c
parent367622d0e98a37b07a5432206a26b01d218084cf (diff)
add "rtable" to select alternate routing tables.
with & ok claudio hshoexer
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 40449787f90..4f522dcd854 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.225 2006/06/30 16:52:27 deraadt Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.226 2006/07/06 13:26:41 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -967,6 +967,8 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose)
printf(" !");
printf(" tagged %s", r->match_tagname);
}
+ if (r->rtableid != -1)
+ printf(" rtable %u", r->rtableid);
if (!anchor_call[0] && (r->action == PF_NAT ||
r->action == PF_BINAT || r->action == PF_RDR)) {
printf(" -> ");