akmhoque | 3d06e79 | 2014-05-27 16:23:20 -0500 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Nick Gordon | feae557 | 2017-01-13 12:06:26 -0600 | [diff] [blame] | 3 | * Copyright (c) 2014-2017, The University of Memphis, |
Nick Gordon | f8b5bcd | 2016-08-11 15:06:50 -0500 | [diff] [blame] | 4 | * Regents of the University of California |
akmhoque | 3d06e79 | 2014-05-27 16:23:20 -0500 | [diff] [blame] | 5 | * |
| 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 Chowdhury | bfa2760 | 2014-10-31 10:57:41 -0500 | [diff] [blame] | 23 | |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 24 | #include "conf-parameter.hpp" |
| 25 | #include "logger.hpp" |
| 26 | |
| 27 | namespace nlsr { |
| 28 | |
| 29 | INIT_LOGGER("ConfParameter"); |
| 30 | |
| 31 | void |
| 32 | ConfParameter::writeLog() |
| 33 | { |
dmcoomes | 5bcb39e | 2017-10-31 15:07:55 -0500 | [diff] [blame^] | 34 | 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 Chowdhury | b00dc2a | 2016-11-05 10:48:58 -0600 | [diff] [blame] | 50 | int i=0; |
| 51 | for (auto const& value: m_corTheta) { |
dmcoomes | 5bcb39e | 2017-10-31 15:07:55 -0500 | [diff] [blame^] | 52 | NLSR_LOG_INFO("Hyp Angle " << i++ << ": "<< value); |
Muktadir R Chowdhury | b00dc2a | 2016-11-05 10:48:58 -0600 | [diff] [blame] | 53 | } |
dmcoomes | 5bcb39e | 2017-10-31 15:07:55 -0500 | [diff] [blame^] | 54 | NLSR_LOG_INFO("Log Directory: " << m_logDir); |
| 55 | NLSR_LOG_INFO("Seq Directory: " << m_seqFileDir); |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 56 | |
| 57 | // Event Intervals |
dmcoomes | 5bcb39e | 2017-10-31 15:07:55 -0500 | [diff] [blame^] | 58 | 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); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | } // namespace nlsr |