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

I allocate struct ifa before unlocking. So route exported to OSPF are correct.

I work also with interfaces that have some problems with socket opening.
I declare them as stub.
This commit is contained in:
Ondrej Filip
2000-09-04 19:42:17 +00:00
parent fdb1998202
commit b02e40111e
3 changed files with 86 additions and 89 deletions

View File

@@ -578,7 +578,10 @@ ospf_reconfigure(struct proto *p, struct proto_config *c)
"Interface %s is now stub.",
ifa->iface->name);
}
if((ip1->stub!=0)&&(ip2->stub==0))
if((ip1->stub!=0)&&(ip2->stub==0)&&
((ifa->ioprob & OSPF_I_IP)==0)&&
(((ifa->ioprob & OSPF_I_MC)==0)||
(ifa->type==OSPF_IT_NBMA)))
{
ifa->stub=ip2->stub;
OSPF_TRACE(D_EVENTS,