diff options
author | Ondrej Filip <feela@network.cz> | 2005-02-18 20:36:32 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2005-02-18 20:36:32 +0100 |
commit | 5506c82ce6123f70220f2d84ff21269bb832bfac (patch) | |
tree | 374822bc9973a1d6d214df3bbf08e0b7e97eff24 /proto | |
parent | 60e04f041303fdafd0abf0dec003a9745345c68a (diff) | |
download | bird-5506c82ce6123f70220f2d84ff21269bb832bfac.tar bird-5506c82ce6123f70220f2d84ff21269bb832bfac.zip |
Bugfix in previous bugfix.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/rt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index b3de8bf..6fe6aed 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); |