diff options
author | Ondrej Filip <feela@network.cz> | 2000-09-02 08:54:40 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-09-02 08:54:40 +0000 |
commit | e3bc10fdc49266db827af4e4062e639862037eb6 (patch) | |
tree | 0eaa4538e5d028c9bbb49e3a57b0d9444ee7be34 /proto/ospf/ospf.c | |
parent | 5ddec4e6cfef8e5867d7440693894517f955e96f (diff) |
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.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index d77158ca..e69afbc0 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); } |