summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-06 18:14:57 +0200
committerOndrej Filip <feela@network.cz>2004-06-06 18:14:57 +0200
commit933bfdde2a0bc4e31e74a3f9e03174b0287c03fb (patch)
tree8ec463ca1bd112222eeda023248adebf1da31173 /proto/ospf
parent54a2178fd4c16189e7e0140c0a885b2cd6d2025e (diff)
downloadbird-933bfdde2a0bc4e31e74a3f9e03174b0287c03fb.tar
bird-933bfdde2a0bc4e31e74a3f9e03174b0287c03fb.zip
Keep al lSAs invalidated.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/topology.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index 295b6ca..6a6eb01 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);