]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Yet another change, now flushing of net lsa seems to be perfect. :-)
authorOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 16:32:29 +0000 (16:32 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 16:32:29 +0000 (16:32 +0000)
proto/ospf/iface.c

index 925829814ba90d5501d8461036caf5dfaf7d8aac..0d3e032917ca50e46be42b9e4778f2e9c5dfe675 100644 (file)
@@ -64,9 +64,13 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
          ifa->dr_sk=NULL;
        }
       }
-      if((oldstate==OSPF_IS_DR)&&(state>=OSPF_IS_WAITING))
+      if(oldstate==OSPF_IS_DR)
       {
-        net_flush_lsa(ifa->nlsa,po,ifa->oa);
+        if(state>=OSPF_IS_WAITING)
+       {
+         net_flush_lsa(ifa->nlsa,po,ifa->oa);
+       }
+       ifa->nlsa->lsa.age=LSA_MAXAGE;
         if(can_flush_lsa(ifa->oa)) flush_lsa(ifa->nlsa,ifa->oa);
         ifa->nlsa=NULL;
       }