]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Flood my LSA (if exists) after old one is flushed.
authorOndrej Filip <feela@network.cz>
Wed, 31 May 2000 15:24:29 +0000 (15:24 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 31 May 2000 15:24:29 +0000 (15:24 +0000)
proto/ospf/lsupd.c

index 9eed7e5c2a7eb60d07f8bca7d912af5196ff4dc2..b9c26d2164df5313627c8cc0cd21508289007670 100644 (file)
@@ -356,12 +356,18 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
 
        if(self)
        {
+         struct top_hash_entry *en;
+
          lsa->age=(htons(LSA_MAXAGE));
         lsatmp.age=LSA_MAXAGE;
         debug("%s: Premature aging self originated lsa.\n",p->name);
          debug("%s: Type: %d, Id: %I, Rt: %I\n", p->name, lsatmp.type,
            lsatmp.id, lsatmp.rt);
          flood_lsa(NULL,lsa,&lsatmp,po,NULL,oa,0);
+        if(en=ospf_hash_find_header(oa->gr,&lsatmp))
+        {
+           flood_lsa(NULL,NULL,&en->lsa,po,NULL,oa,1);
+        }
         continue;
        }