blob: 05a96dd7ccd99dc4b91b0925d8c63ec0b1a56812 [file] [log] [blame]
akmhoque3d06e792014-05-27 16:23:20 -05001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Nick Gordonfeae5572017-01-13 12:06:26 -06003 * Copyright (c) 2014-2017, The University of Memphis,
Nick Gordonf8b5bcd2016-08-11 15:06:50 -05004 * Regents of the University of California
akmhoque3d06e792014-05-27 16:23:20 -05005 *
6 * This file is part of NLSR (Named-data Link State Routing).
7 * See AUTHORS.md for complete list of NLSR authors and contributors.
8 *
9 * NLSR is free software: you can redistribute it and/or modify it under the terms
10 * of the GNU General Public License as published by the Free Software Foundation,
11 * either version 3 of the License, or (at your option) any later version.
12 *
13 * NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
14 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * \author A K M Mahmudul Hoque <ahoque1@memphis.edu>
21 *
22 **/
Muktadir R Chowdhurybfa27602014-10-31 10:57:41 -050023
akmhoque674b0b12014-05-20 14:33:28 -050024#include "conf-parameter.hpp"
25#include "logger.hpp"
26
27namespace nlsr {
28
29INIT_LOGGER("ConfParameter");
30
31void
32ConfParameter::writeLog()
33{
dmcoomes5bcb39e2017-10-31 15:07:55 -050034 NLSR_LOG_INFO("Router Name: " << m_routerName);
35 NLSR_LOG_INFO("Site Name: " << m_siteName);
36 NLSR_LOG_INFO("Network: " << m_network);
37 NLSR_LOG_INFO("Router Prefix: " << m_routerPrefix);
38 NLSR_LOG_INFO("ChronoSync sync Prefix: " << m_chronosyncPrefix);
39 NLSR_LOG_INFO("ChronoSync LSA prefix: " << m_lsaPrefix);
40 NLSR_LOG_INFO("Hello Interest retry number: " << m_interestRetryNumber);
41 NLSR_LOG_INFO("Hello Interest resend second: " << m_interestResendTime);
42 NLSR_LOG_INFO("Info Interest interval: " << m_infoInterestInterval);
43 NLSR_LOG_INFO("LSA refresh time: " << m_lsaRefreshTime);
44 NLSR_LOG_INFO("FIB Entry refresh time: " << m_lsaRefreshTime * 2);
45 NLSR_LOG_INFO("LSA Interest lifetime: " << getLsaInterestLifetime());
46 NLSR_LOG_INFO("Router dead interval: " << getRouterDeadInterval());
47 NLSR_LOG_INFO("Max Faces Per Prefix: " << m_maxFacesPerPrefix);
48 NLSR_LOG_INFO("Hyperbolic Routing: " << m_hyperbolicState);
49 NLSR_LOG_INFO("Hyp R: " << m_corR);
Muktadir R Chowdhuryb00dc2a2016-11-05 10:48:58 -060050 int i=0;
51 for (auto const& value: m_corTheta) {
dmcoomes5bcb39e2017-10-31 15:07:55 -050052 NLSR_LOG_INFO("Hyp Angle " << i++ << ": "<< value);
Muktadir R Chowdhuryb00dc2a2016-11-05 10:48:58 -060053 }
dmcoomes5bcb39e2017-10-31 15:07:55 -050054 NLSR_LOG_INFO("Log Directory: " << m_logDir);
55 NLSR_LOG_INFO("Seq Directory: " << m_seqFileDir);
Vince Lehman7b616582014-10-17 16:25:39 -050056
57 // Event Intervals
dmcoomes5bcb39e2017-10-31 15:07:55 -050058 NLSR_LOG_INFO("Adjacency LSA build interval: " << m_adjLsaBuildInterval);
59 NLSR_LOG_INFO("First Hello Interest interval: " << m_firstHelloInterval);
60 NLSR_LOG_INFO("Routing calculation interval: " << m_routingCalcInterval);
akmhoque674b0b12014-05-20 14:33:28 -050061}
62
63} // namespace nlsr