blob: 8498615e1fec7387051855186927af3a81176a93 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014-2017, The University of Memphis,
* Regents of the University of California
*
* This file is part of NLSR (Named-data Link State Routing).
* See AUTHORS.md for complete list of NLSR authors and contributors.
*
* NLSR is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
*
* \author A K M Mahmudul Hoque <ahoque1@memphis.edu>
*
**/
#include "conf-parameter.hpp"
#include "logger.hpp"
namespace nlsr {
INIT_LOGGER("ConfParameter");
void
ConfParameter::writeLog()
{
_LOG_INFO("Router Name: " << m_routerName);
_LOG_INFO("Site Name: " << m_siteName);
_LOG_INFO("Network: " << m_network);
_LOG_INFO("Router Prefix: " << m_routerPrefix);
_LOG_INFO("ChronoSync sync Prefix: " << m_chronosyncPrefix);
_LOG_INFO("ChronoSync LSA prefix: " << m_lsaPrefix);
_LOG_INFO("Hello Interest retry number: " << m_interestRetryNumber);
_LOG_INFO("Hello Interest resend second: " << m_interestResendTime);
_LOG_INFO("Info Interest interval: " << m_infoInterestInterval);
_LOG_INFO("LSA refresh time: " << m_lsaRefreshTime);
_LOG_INFO("FIB Entry refresh time: " << m_lsaRefreshTime * 2);
_LOG_INFO("LSA Interest lifetime: " << getLsaInterestLifetime());
_LOG_INFO("Router dead interval: " << getRouterDeadInterval());
_LOG_INFO("Max Faces Per Prefix: " << m_maxFacesPerPrefix);
_LOG_INFO("Hyperbolic Routing: " << m_hyperbolicState);
_LOG_INFO("Hyp R: " << m_corR);
_LOG_INFO("Hyp theta: " << m_corTheta);
_LOG_INFO("Log Directory: " << m_logDir);
_LOG_INFO("Seq Directory: " << m_seqFileDir);
// Event Intervals
_LOG_INFO("Adjacency LSA build interval: " << m_adjLsaBuildInterval);
_LOG_INFO("First Hello Interest interval: " << m_firstHelloInterval);
_LOG_INFO("Routing calculation interval: " << m_routingCalcInterval);
}
} // namespace nlsr