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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user