summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2013-03-22 14:26:35 +0000
committersthen <sthen@openbsd.org>2013-03-22 14:26:35 +0000
commit0a05e8afc970b5b5d100364e1a776e5a66fda21e (patch)
tree56e167d7edae84bc15296950d7d265b66cc264c8
parentAllow use of an alternative control socket, ported from ospfd. ok claudio@ (diff)
downloadwireguard-openbsd-0a05e8afc970b5b5d100364e1a776e5a66fda21e.tar.xz
wireguard-openbsd-0a05e8afc970b5b5d100364e1a776e5a66fda21e.zip
port from ospfd/lsreq.c r1.20, ok claudio@
date: 2013/01/17 09:02:22; author: markus; state: Exp; lines: +4 -2 the peer might still send more DD messages, even if the RDE has processed all received DDs (dd_pending == 0), so we need to check for state != NBR_STA_XCHNG; ok claudio@
-rw-r--r--usr.sbin/ospf6d/lsreq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/lsreq.c b/usr.sbin/ospf6d/lsreq.c
index fa416639f95..af5ee550561 100644
--- a/usr.sbin/ospf6d/lsreq.c
+++ b/usr.sbin/ospf6d/lsreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsreq.c,v 1.7 2011/05/02 08:56:44 claudio Exp $ */
+/* $OpenBSD: lsreq.c,v 1.8 2013/03/22 14:26:35 sthen Exp $ */
/*
* Copyright (c) 2004, 2005, 2007 Esben Norby <norby@openbsd.org>
@@ -160,7 +160,9 @@ ls_req_list_free(struct nbr *nbr, struct lsa_entry *le)
start_ls_req_tx_timer(nbr);
}
- if (ls_req_list_empty(nbr) && nbr->dd_pending == 0)
+ /* we might not have received all DDs and are still in XCHNG */
+ if (ls_req_list_empty(nbr) && nbr->dd_pending == 0 &&
+ nbr->state != NBR_STA_XCHNG)
nbr_fsm(nbr, NBR_EVT_LOAD_DONE);
}