From 933bfdde2a0bc4e31e74a3f9e03174b0287c03fb Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 6 Jun 2004 16:14:57 +0000 Subject: [PATCH] Keep al lSAs invalidated. --- proto/ospf/topology.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 295b6ca0..6a6eb01d 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -610,13 +610,18 @@ ospf_hash_get(struct top_graph *f, u32 lsa, u32 rtr, u32 type) e = e->next; if (e) return e; + 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.rt = rtr; e->lsa.type = type; e->lsa_body = NULL; e->nhi = NULL; - e->next = *ee; /* MJ you forgot this :-) */ + e->next = *ee; *ee = e; if (f->hash_entries++ > f->hash_entries_max) ospf_top_rehash(f, HASH_HI_STEP);