0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Flood my LSA (if exists) after old one is flushed.

This commit is contained in:
Ondrej Filip 2000-05-31 15:24:29 +00:00
parent 0822995cb3
commit 82364f4db8

View 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;
}