From 5506c82ce6123f70220f2d84ff21269bb832bfac Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 18 Feb 2005 19:36:32 +0000 Subject: Bugfix in previous bugfix. --- proto/ospf/rt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto') diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index b3de8bfd..6fe6aedb 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -121,7 +121,7 @@ ri_install(struct proto_ospf *po, ip_addr prefix, int pxlen, int dest, if ((new->type == RTS_OSPF) && (anet = (struct area_net *)fib_route(&oa->net_fib, prefix, pxlen))) { anet->active = 1; - if (new->metric1 < anet->metric) anet->metric = new->metric1; + if (new->metric1 > anet->metric) anet->metric = new->metric1; } } else @@ -588,7 +588,7 @@ ospf_rt_spf(struct proto_ospf *po) { anet = (struct area_net *) nftmp; anet->active = 0; - anet->metric = LSINFINITY; + anet->metric = 1; } FIB_WALK_END; ospf_rt_spfa(oa); -- cgit v1.2.3