src: change initialization order
Send Hello Interest after route to neighbor is successfully registered
--> First Hello interval is eliminated
--> After Hello Nack, wait exponentially before processing it as a timeout
Register sync route for each neighbor after its Hello Data is validated
refs: #5009
Change-Id: Ice39a591f1e58e474b494d93c913fa45e10f24f2
diff --git a/src/sequencing-manager.cpp b/src/sequencing-manager.cpp
index 2aa8e98..bae9e68 100644
--- a/src/sequencing-manager.cpp
+++ b/src/sequencing-manager.cpp
@@ -138,8 +138,14 @@
SequencingManager::writeLog() const
{
NLSR_LOG_DEBUG("----SequencingManager----");
- NLSR_LOG_DEBUG("Adj LSA seq no: " << m_adjLsaSeq);
- NLSR_LOG_DEBUG("Cor LSA Seq no: " << m_corLsaSeq);
+ if (m_hyperbolicState == HYPERBOLIC_STATE_OFF ||
+ m_hyperbolicState == HYPERBOLIC_STATE_DRY_RUN) {
+ NLSR_LOG_DEBUG("Adj LSA seq no: " << m_adjLsaSeq);
+ }
+ if (m_hyperbolicState == HYPERBOLIC_STATE_ON ||
+ m_hyperbolicState == HYPERBOLIC_STATE_DRY_RUN) {
+ NLSR_LOG_DEBUG("Cor LSA Seq no: " << m_corLsaSeq);
+ }
NLSR_LOG_DEBUG("Name LSA Seq no: " << m_nameLsaSeq);
}