From 81787a9c18092f8b6ff8b7ed88372701d75935d7 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 1 Mar 2004 16:02:02 +0000 Subject: Make it possible to diable the decision process. This is a feature only useful for route-collectors. OK henning@ --- usr.sbin/bgpd/rde_rib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/rde_rib.c') 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 @@ -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); -- cgit v1.2.3