diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-06 01:10:30 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-06 01:10:30 +0000 |
commit | e30123f62cefd11d5df4928fb56d398c7d671bac (patch) | |
tree | 8b79dd9dddc6846dd2936fa4076a92f443652db1 /usr.sbin/bgpd/printconf.c | |
parent | f1c395125acf7c5bdeb01ecdcf91dc81045d10da (diff) |
Some preliminary filter magic to support multiple RIBs on the filters.
It is ugly but does the trick for now. Filters will be rewritten anyway.
The rib specifier only makes sense on from rules. e.g. deny rib OMG from any
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r-- | usr.sbin/bgpd/printconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c index 358b55e5c47..c64d23dee95 100644 --- a/usr.sbin/bgpd/printconf.c +++ b/usr.sbin/bgpd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.69 2009/06/05 20:26:38 claudio Exp $ */ +/* $OpenBSD: printconf.c,v 1.70 2009/06/06 01:10:29 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -423,10 +423,12 @@ print_rule(struct peer *peer_l, struct filter_rule *r) printf("deny "); else printf("match "); - if (r->quick) printf("quick "); + if (r->rib[0]) + printf("rib %s ", r->rib); + if (r->dir == DIR_IN) printf("from "); else if (r->dir == DIR_OUT) |