From 7cedbf217e8ce8a8669f31b1ee38e5f9ccb4eefd Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sat, 2 Sep 2000 00:15:07 +0000 Subject: Reconfiguration for new options. --- proto/ospf/ospf.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'proto') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 55696bd7..3fc3f607 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -542,6 +542,22 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) schedule_rt_lsa(ifa->oa); } + /* strict nbma */ + if((ip1->strictnbma==0)&&(ip2->strictnbma!=0)) + { + ifa->strictnbma=ip2->strictnbma; + OSPF_TRACE(D_EVENTS, + "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", + ifa->iface->name); + } + /* AUTHETICATION */ if(ip1->autype!=ip2->autype) { @@ -605,6 +621,10 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) if(ipa_compare(nb1->ip,nb2->ip)==0) { found=1; + if(nb1->eligible!=nb2->eligible) + OSPF_TRACE(D_EVENTS, + "Changing neighbor eligibility %I on interface %s", + nb1->ip,ifa->iface->name); break; } @@ -631,6 +651,7 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) { nb1=mb_alloc(p->pool,sizeof(struct nbma_node)); nb1->ip=nb2->ip; + nb1->eligible=nb2->eligible; add_tail(&ifa->nbma_list, NODE nb1); OSPF_TRACE(D_EVENTS, "Adding NBMA neighbor %I on interface %s", -- cgit v1.2.3