summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/kroute.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-04-12 12:51:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-04-12 12:51:38 +0000
commit106403582938f109a9743d3d9fabf185668938a6 (patch)
treeb50197a0a35a1c970c1228c63eeac3f0134733b7 /usr.sbin/ospfd/kroute.c
parent589c195c6ee3816aad9422a8ef8a18dbfd8d8348 (diff)
Before starting to evaluate the redistributon of a route it helps to set
the metric to the highest and least preferred possible value else no routes are redistributed. OK norby@
Diffstat (limited to 'usr.sbin/ospfd/kroute.c')
-rw-r--r--usr.sbin/ospfd/kroute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 62ad54dde86..42f87e39193 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.45 2007/03/27 09:43:20 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.46 2007/04/12 12:51:37 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -442,6 +442,7 @@ kr_redistribute(struct kroute_node *kh)
int redistribute = 0;
bzero(&rr, sizeof(rr));
+ rr.metric = UINT_MAX;
for (kn = kh; kn; kn = kn->next)
if (kr_redist_eval(&kn->r, &rr))
redistribute = 1;