fw: ForwarderCounters
refs #1199
Change-Id: I0664825d7b09b4e7e893876aefc5af10e53b90b1
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index 8e7c0d2..c6e3529 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -9,6 +9,7 @@
#include "common.hpp"
#include "core/scheduler.hpp"
+#include "forwarder-counter.hpp"
#include "face-table.hpp"
#include "table/fib.hpp"
#include "table/pit.hpp"
@@ -31,6 +32,9 @@
public:
Forwarder();
+ const ForwarderCounters&
+ getCounters() const;
+
public: // faces
FaceTable&
getFaceTable();
@@ -141,6 +145,8 @@
#endif
private:
+ ForwarderCounters m_counters;
+
FaceTable m_faceTable;
// tables
@@ -158,6 +164,12 @@
friend class fw::Strategy;
};
+inline const ForwarderCounters&
+Forwarder::getCounters() const
+{
+ return m_counters;
+}
+
inline FaceTable&
Forwarder::getFaceTable()
{