summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-02-21 10:12:18 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-02-21 10:12:18 +0000
commitb0eba532f430d56637ab6df0e1b8d8bf4dc3ff4c (patch)
treeac462d980d695d830c45389a3ab349c4a3960b92 /usr.sbin
parent2b4b64d80cfaed753aba9cbec29fa97518568294 (diff)
Correctly count the number of LSAs in the retransmission list. OK norby@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/lsupdate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c
index ef5432bfd01..ebffa4636de 100644
--- a/usr.sbin/ospfd/lsupdate.c
+++ b/usr.sbin/ospfd/lsupdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsupdate.c,v 1.25 2006/02/19 18:55:47 norby Exp $ */
+/* $OpenBSD: lsupdate.c,v 1.26 2006/02/21 10:12:17 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -357,6 +357,7 @@ ls_retrans_list_insert(struct nbr *nbr, struct lsa_entry *new)
if (when < le->le_when) {
new->le_when = when;
TAILQ_INSERT_BEFORE(le, new, entry);
+ nbr->ls_ret_cnt++;
return;
}
when -= le->le_when;
@@ -475,6 +476,7 @@ ls_retrans_timer(int fd, short event, void *bula)
ls_retrans_list_free(nbr, le);
else {
TAILQ_REMOVE(&nbr->ls_retrans_list, le, entry);
+ nbr->ls_ret_cnt--;
le->le_when = nbr->iface->rxmt_interval;
ls_retrans_list_insert(nbr, le);
}