src: Implement packet statistics collection
refs: #2955, #2956
Change-Id: I57476a63562dbd378e566ad0280c89ccc5883e3e
diff --git a/src/nlsr.hpp b/src/nlsr.hpp
index 1a3432a..54af8b4 100644
--- a/src/nlsr.hpp
+++ b/src/nlsr.hpp
@@ -38,6 +38,7 @@
#include "update/prefix-update-processor.hpp"
#include "update/nfd-rib-command-processor.hpp"
#include "utility/name-helper.hpp"
+#include "stats-collector.hpp"
#include <stdexcept>
@@ -376,6 +377,11 @@
canonizeNeighborUris(std::list<Adjacent>::iterator currentNeighbor,
std::function<void(std::list<Adjacent>::iterator)> then);
+ StatsCollector&
+ getStatsCollector()
+ {
+ return m_statsCollector;
+ }
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
void
@@ -470,6 +476,7 @@
ndn::Name m_defaultCertName;
update::PrefixUpdateProcessor m_prefixUpdateProcessor;
update::NfdRibCommandProcessor m_nfdRibCommandProcessor;
+ StatsCollector m_statsCollector;
ndn::nfd::FaceMonitor m_faceMonitor;