diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-26 09:53:59 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-26 09:53:59 +0000 |
commit | 245b0768e51d19cb3169231639923a415685018e (patch) | |
tree | 5276c062101c059cbc98ac6697c821ad93fbbf26 /usr.sbin/bgpd/rde.c | |
parent | fcec2f54ae37c4320378b7e1da683d10998ab3c5 (diff) |
Add per netwok definition filter sets. So you can now use
network 10.0.0.0/8 set localpref 100
OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 29bd7828fa4..83b93321053 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.86 2004/02/25 19:48:18 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.87 2004/02/26 09:53:58 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -894,6 +894,9 @@ network_add(struct network_config *nc) attrs.origin = ORIGIN_IGP; TAILQ_INIT(&attrs.others); + /* apply default overrides */ + rde_apply_set(&attrs, &nc->attrset); + path_update(&peerself, &attrs, &nc->prefix, nc->prefixlen); } |