diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-09 20:20:39 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-09 20:20:39 +0200 |
commit | cd22a62b3ce3aa4cf8985337657ec9750176aa49 (patch) | |
tree | 3bca318774f90ed8497be68cd1be7225b7b2fde6 | |
parent | 9669362f0577dbda0d7b9495d0c2fec11fa866f1 (diff) | |
download | bird-cd22a62b3ce3aa4cf8985337657ec9750176aa49.tar bird-cd22a62b3ce3aa4cf8985337657ec9750176aa49.zip |
Don't send flushed LSAs.
-rw-r--r-- | proto/ospf/lsupd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c index 9009b17..608db87 100644 --- a/proto/ospf/lsupd.c +++ b/proto/ospf/lsupd.c @@ -175,7 +175,9 @@ ospf_lsupd_tx_list(struct ospf_neighbor *n, list *l) WALK_LIST(llsh, *l) { - en=ospf_hash_find(n->ifa->oa->gr,llsh->lsh.id,llsh->lsh.rt,llsh->lsh.type); + if((en=ospf_hash_find(n->ifa->oa->gr,llsh->lsh.id,llsh->lsh.rt, + llsh->lsh.type))==NULL) continue; /* Probably flushed LSA */ + DBG("Sending ID=%I, Type=%u, RT=%I\n", llsh->lsh.id, llsh->lsh.type, llsh->lsh.rt); if((len+en->lsa.length)>n->ifa->iface->mtu) |