blob: 0b99193a052495ef3b8b942bd4ff9a6bb1d07334 [file] [log] [blame]
akmhoque3d06e792014-05-27 16:23:20 -05001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Nick Gordonf8b5bcd2016-08-11 15:06:50 -05003 * Copyright (c) 2014-2016, The University of Memphis,
4 * 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{
34 _LOG_DEBUG("Router Name: " << m_routerName);
35 _LOG_DEBUG("Site Name: " << m_siteName);
36 _LOG_DEBUG("Network: " << m_network);
37 _LOG_DEBUG("Router Prefix: " << m_routerPrefix);
Vince Lehman7b616582014-10-17 16:25:39 -050038 _LOG_DEBUG("ChronoSync sync Prefix: " << m_chronosyncPrefix);
akmhoque674b0b12014-05-20 14:33:28 -050039 _LOG_DEBUG("ChronoSync LSA prefix: " << m_lsaPrefix);
Alexander Afanasyev411ee4b2014-08-16 23:17:03 -070040 _LOG_DEBUG("Hello Interest retry number: " << m_interestRetryNumber);
41 _LOG_DEBUG("Hello Interest resend second: " << m_interestResendTime);
42 _LOG_DEBUG("Info Interest interval: " << m_infoInterestInterval);
akmhoque674b0b12014-05-20 14:33:28 -050043 _LOG_DEBUG("LSA refresh time: " << m_lsaRefreshTime);
Alexander Afanasyev411ee4b2014-08-16 23:17:03 -070044 _LOG_DEBUG("LSA Interest lifetime: " << getLsaInterestLifetime());
Alexander Afanasyev1cf1e102014-08-17 19:47:57 -070045 _LOG_DEBUG("Router dead interval: " << getRouterDeadInterval());
akmhoque674b0b12014-05-20 14:33:28 -050046 _LOG_DEBUG("Max Faces Per Prefix: " << m_maxFacesPerPrefix);
Vince Lehman7b616582014-10-17 16:25:39 -050047 _LOG_DEBUG("Hyperbolic Routing: " << m_hyperbolicState);
akmhoque674b0b12014-05-20 14:33:28 -050048 _LOG_DEBUG("Hyp R: " << m_corR);
49 _LOG_DEBUG("Hyp theta: " << m_corTheta);
50 _LOG_DEBUG("Log Directory: " << m_logDir);
51 _LOG_DEBUG("Seq Directory: " << m_seqFileDir);
Vince Lehman7b616582014-10-17 16:25:39 -050052
53 // Event Intervals
54 _LOG_DEBUG("Adjacency LSA build interval: " << m_adjLsaBuildInterval);
55 _LOG_DEBUG("First Hello Interest interval: " << m_firstHelloInterval);
56 _LOG_DEBUG("Routing calculation interval: " << m_routingCalcInterval);
akmhoque674b0b12014-05-20 14:33:28 -050057}
58
59} // namespace nlsr