1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Minor finalizations of link state checks.

This commit is contained in:
Ondrej Zajicek
2010-11-19 13:46:21 +01:00
parent 79f561a173
commit 391931d456
10 changed files with 34 additions and 22 deletions

View File

@@ -759,12 +759,12 @@ ospf_reconfigure(struct proto *p, struct proto_config *c)
}
/* LINK */
if (oldip->use_link != newip->use_link)
if (oldip->check_link != newip->check_link)
{
ifa->use_link = newip->use_link;
ifa->check_link = newip->check_link;
if (!(ifa->iface->flags & IF_LINK_UP))
ospf_iface_sm(ifa, ifa->use_link ? ISM_LOOP : ISM_UNLOOP);
ospf_iface_sm(ifa, ifa->check_link ? ISM_LOOP : ISM_UNLOOP);
}
/* strict nbma */