diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-06 18:14:57 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-06 18:14:57 +0200 |
commit | 933bfdde2a0bc4e31e74a3f9e03174b0287c03fb (patch) | |
tree | 8ec463ca1bd112222eeda023248adebf1da31173 /proto/ospf | |
parent | 54a2178fd4c16189e7e0140c0a885b2cd6d2025e (diff) | |
download | bird-933bfdde2a0bc4e31e74a3f9e03174b0287c03fb.tar bird-933bfdde2a0bc4e31e74a3f9e03174b0287c03fb.zip |
Keep al lSAs invalidated.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/topology.c | 7 |
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); |