summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index 64bfcdc0..83bcc566 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,