From e3bc10fdc49266db827af4e4062e639862037eb6 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sat, 2 Sep 2000 08:54:40 +0000 Subject: 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. --- proto/ospf/ospf.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'proto/ospf/ospf.c') 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); } -- cgit v1.2.3