summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index d77158c..e69afbc 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -558,14 +558,30 @@ ospf_reconfigure(struct proto *p, struct proto_config *c)
{
ifa->strictnbma=ip2->strictnbma;
OSPF_TRACE(D_EVENTS,
- "Interface %s is now strict NBMA",
+ "Interface %s is now strict NBMA.",
ifa->iface->name);
}
if((ip1->strictnbma!=0)&&(ip2->strictnbma==0))
{
ifa->strictnbma=ip2->strictnbma;
OSPF_TRACE(D_EVENTS,
- "Interface %s is no longer strict NBMA",
+ "Interface %s is no longer strict NBMA.",
+ ifa->iface->name);
+ }
+
+ /* stub */
+ if((ip1->stub==0)&&(ip2->stub!=0))
+ {
+ ifa->stub=ip2->stub;
+ OSPF_TRACE(D_EVENTS,
+ "Interface %s is now stub.",
+ ifa->iface->name);
+ }
+ if((ip1->stub!=0)&&(ip2->stub==0))
+ {
+ ifa->stub=ip2->stub;
+ OSPF_TRACE(D_EVENTS,
+ "Interface %s is no longer stub.",
ifa->iface->name);
}