main: Added fib manager to management initialization

Change-Id: Ib0553998aee8e47f79180acdb20f75e15f765aac
refs: #1139
diff --git a/daemon/main.cpp b/daemon/main.cpp
index 7a95b3f..bdb01e6 100644
--- a/daemon/main.cpp
+++ b/daemon/main.cpp
@@ -8,6 +8,7 @@
 #include "core/logger.hpp"
 #include "fw/forwarder.hpp"
 #include "mgmt/internal-face.hpp"
+#include "mgmt/fib-manager.hpp"
 #include "face/tcp-channel-factory.hpp"
 
 namespace nfd {
@@ -35,6 +36,7 @@
 static boost::asio::io_service g_ioService;
 static ProgramOptions g_options;
 static Forwarder* g_forwarder;
+static FibManager* g_fibManager;
 static TcpChannelFactory* g_tcpFactory;
 static shared_ptr<TcpChannel> g_tcpChannel;
 static shared_ptr<InternalFace> g_internalFace;
@@ -164,6 +166,13 @@
 {
   g_internalFace = make_shared<InternalFace>();
   g_forwarder->addFace(g_internalFace);
+
+  g_fibManager = new FibManager(g_forwarder->getFib(),
+                                bind(&Forwarder::getFace, g_forwarder, _1),
+                                g_internalFace);
+
+  shared_ptr<fib::Entry> entry = g_forwarder->getFib().insert("/localhost/nfd/fib").first;
+  entry->addNextHop(g_internalFace, 0);
 }
 
 int