mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Bugfix in previous bugfix.
This commit is contained in:
parent
60e04f0413
commit
5506c82ce6
@ -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)))
|
if ((new->type == RTS_OSPF) && (anet = (struct area_net *)fib_route(&oa->net_fib, prefix, pxlen)))
|
||||||
{
|
{
|
||||||
anet->active = 1;
|
anet->active = 1;
|
||||||
if (new->metric1 < anet->metric) anet->metric = new->metric1;
|
if (new->metric1 > anet->metric) anet->metric = new->metric1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -588,7 +588,7 @@ ospf_rt_spf(struct proto_ospf *po)
|
|||||||
{
|
{
|
||||||
anet = (struct area_net *) nftmp;
|
anet = (struct area_net *) nftmp;
|
||||||
anet->active = 0;
|
anet->active = 0;
|
||||||
anet->metric = LSINFINITY;
|
anet->metric = 1;
|
||||||
}
|
}
|
||||||
FIB_WALK_END;
|
FIB_WALK_END;
|
||||||
ospf_rt_spfa(oa);
|
ospf_rt_spfa(oa);
|
||||||
|
Loading…
Reference in New Issue
Block a user