diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-01 16:02:02 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-01 16:02:02 +0000 |
commit | 81787a9c18092f8b6ff8b7ed88372701d75935d7 (patch) | |
tree | 6a30c639b6bb135dc0bf204cb73bc3b54d48b7a3 /usr.sbin/bgpd/rde_rib.c | |
parent | 7e29d931c4fdd5a145dd21639ee2fe22809ea26a (diff) |
Make it possible to diable the decision process. This is a feature only useful
for route-collectors. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index 5afd5c85f84..d90dcb63590 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.39 2004/02/27 20:53:56 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.40 2004/03/01 16:02:01 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -456,6 +456,10 @@ prefix_updateall(struct rde_aspath *asp, enum nexthop_state state) RIB_STAT(prefix_updateall); ENSURE(asp != NULL); + if (rde_noevaluate()) + /* if the decision process is turned off this is a no-op */ + return; + LIST_FOREACH(p, &asp->prefix_h, path_l) { /* redo the route decision */ LIST_REMOVE(p, prefix_l); |