summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_decide.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-06-06 01:07:02 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-06-06 01:07:02 +0000
commitf1c395125acf7c5bdeb01ecdcf91dc81045d10da (patch)
tree6f99c3397b95aa20d6818c34e4097f4386f48f66 /usr.sbin/bgpd/rde_decide.c
parent7b467a55243b27419a4d75d2c570e2f7cf5fc2c5 (diff)
Only the main Loc-RIB should update the FIB for now. So introduce a
F_RIB_NOFIB flag and apply it on all RIBs that are not F_RIB_NOEVALUATE.
Diffstat (limited to 'usr.sbin/bgpd/rde_decide.c')
-rw-r--r--usr.sbin/bgpd/rde_decide.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_decide.c b/usr.sbin/bgpd/rde_decide.c
index d5f4bcfa492..2d8b3cd0bc3 100644
--- a/usr.sbin/bgpd/rde_decide.c
+++ b/usr.sbin/bgpd/rde_decide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_decide.c,v 1.56 2009/06/06 01:02:51 claudio Exp $ */
+/* $OpenBSD: rde_decide.c,v 1.57 2009/06/06 01:07:01 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -262,7 +262,8 @@ prefix_evaluate(struct prefix *p, struct rib_entry *re)
* Additional decision may be made by the called functions.
*/
rde_generate_updates(re->ribid, xp, re->active);
- rde_send_kroute(xp, re->active);
+ if (re->flags & F_RIB_NOFIB)
+ rde_send_kroute(xp, re->active);
re->active = xp;
if (xp != NULL)