main: Enabling LocalControlHeader manager
Change-Id: I3e72a6913cbf62689bd36cefd73f5d6f237dbf85
Refs: #1210
diff --git a/daemon/main.cpp b/daemon/main.cpp
index 46b5bd3..2c83177 100644
--- a/daemon/main.cpp
+++ b/daemon/main.cpp
@@ -9,6 +9,7 @@
#include "fw/forwarder.hpp"
#include "mgmt/internal-face.hpp"
#include "mgmt/fib-manager.hpp"
+#include "mgmt/local-control-header-manager.hpp"
#include "face/tcp-channel-factory.hpp"
#ifdef HAVE_UNIX_SOCKETS
@@ -41,6 +42,7 @@
static ProgramOptions g_options;
static Forwarder* g_forwarder;
static FibManager* g_fibManager;
+static LocalControlHeaderManager* g_localControlHeaderManager;
static TcpChannelFactory* g_tcpFactory;
static shared_ptr<TcpChannel> g_tcpChannel;
static shared_ptr<InternalFace> g_internalFace;
@@ -207,7 +209,11 @@
bind(&Forwarder::getFace, g_forwarder, _1),
g_internalFace);
- shared_ptr<fib::Entry> entry = g_forwarder->getFib().insert("/localhost/nfd/fib").first;
+ g_localControlHeaderManager =
+ new LocalControlHeaderManager(bind(&Forwarder::getFace, g_forwarder, _1),
+ g_internalFace);
+
+ shared_ptr<fib::Entry> entry = g_forwarder->getFib().insert("/localhost/nfd").first;
entry->addNextHop(g_internalFace, 0);
}