summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 22:07:58 +0000
committerOndrej Filip <feela@network.cz>2000-04-18 22:07:58 +0000
commit740d16d972d8e2accdb7a2f92048de302c9e966c (patch)
treeb3798bb9d703eb4c861300b604ba3911b3a5fe96 /proto
parent84228eee273e2a689f4479d9a91f6b0a32c19b44 (diff)
Another ack bugfix. (Bad test for MIN_LS_ARRIVAL.)
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/lsupd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 199a5e98..d10ee3e8 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -86,7 +86,7 @@ flood_lsa(struct ospf_neighbor *n, struct ospf_lsa_header *hn,
if(iff->state==OSPF_IS_BACKUP) continue;
retval=1;
}
- /* FIXME directly flood */
+
{
sock *sk;
ip_addr to;
@@ -289,10 +289,12 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
DBG("PG143(5): Received LSA is newer\n");
/* pg 144 (5a) */
- if(lsadb && ((lsadb->inst_t-now)<MINLSARRIVAL)) continue;
+ if(lsadb && ((now-lsadb->inst_t)<MINLSARRIVAL)) continue;
+
if(flood_lsa(n,lsa,&lsatmp,po,ifa,ifa->oa)==0)
{
+ DGB("Wasn't flooded back\n");
if(ifa->state==OSPF_IS_BACKUP)
{
if(ifa->drid==n->rid) ospf_lsa_delay(n, lsa, p);