summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-09-02 10:54:40 +0200
committerOndrej Filip <feela@network.cz>2000-09-02 10:54:40 +0200
commite3bc10fdc49266db827af4e4062e639862037eb6 (patch)
tree0eaa4538e5d028c9bbb49e3a57b0d9444ee7be34 /proto/ospf/ospf.c
parent5ddec4e6cfef8e5867d7440693894517f955e96f (diff)
downloadbird-e3bc10fdc49266db827af4e4062e639862037eb6.tar
bird-e3bc10fdc49266db827af4e4062e639862037eb6.zip
Added stub interface. (Interface which is propagated to OSPF but
it does not sends nor listens packets.) I added some new options, please look at it and look into doc if it's OK.
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);
}