0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Keep al lSAs invalidated.

This commit is contained in:
Ondrej Filip 2004-06-06 16:14:57 +00:00
parent 54a2178fd4
commit 933bfdde2a

View File

@ -610,13 +610,18 @@ ospf_hash_get(struct top_graph *f, u32 lsa, u32 rtr, u32 type)
e = e->next; e = e->next;
if (e) if (e)
return e; return e;
e = sl_alloc(f->hash_slab); e = sl_alloc(f->hash_slab);
e->color = OUTSPF;
e->dist = LSINFINITY;
e->nhi = NULL;
e->nh = ipa_from_u32(0);
e->lsa.id = lsa; e->lsa.id = lsa;
e->lsa.rt = rtr; e->lsa.rt = rtr;
e->lsa.type = type; e->lsa.type = type;
e->lsa_body = NULL; e->lsa_body = NULL;
e->nhi = NULL; e->nhi = NULL;
e->next = *ee; /* MJ you forgot this :-) */ e->next = *ee;
*ee = e; *ee = e;
if (f->hash_entries++ > f->hash_entries_max) if (f->hash_entries++ > f->hash_entries_max)
ospf_top_rehash(f, HASH_HI_STEP); ospf_top_rehash(f, HASH_HI_STEP);