From 1902c78559ad9225aeda2c22f42147de73f843de Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 6 Jul 2006 13:26:42 +0000 Subject: add "rtable" to select alternate routing tables. with & ok claudio hshoexer --- sbin/pfctl/pfctl_parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sbin/pfctl/pfctl_parser.c') 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(" -> "); -- cgit v1.2.3