From b02e40111ea8d97bf1c3bfa25970ee0d828cd7bc Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 4 Sep 2000 19:42:17 +0000 Subject: 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. --- proto/ospf/ospf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'proto/ospf/ospf.c') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 64bfcdc..83bcc56 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -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, -- cgit v1.2.3