helper+model: Fix helpers to work with NFD/ndn-cxx 0.4+
Change-Id: I7ed2893acbda1458383603c0e3c154d3e841405e
Refs: #3560
diff --git a/helper/ndn-fib-helper.cpp b/helper/ndn-fib-helper.cpp
index 95c0309..a74ddb2 100644
--- a/helper/ndn-fib-helper.cpp
+++ b/helper/ndn-fib-helper.cpp
@@ -42,7 +42,6 @@
#include "ns3/ndnSIM/model/ndn-l3-protocol.hpp"
#include "ns3/ndnSIM/helper/ndn-stack-helper.hpp"
-
namespace ns3 {
namespace ndn {
@@ -62,8 +61,7 @@
StackHelper::getKeyChain().sign(*command);
Ptr<L3Protocol> l3protocol = node->GetObject<L3Protocol>();
- shared_ptr<nfd::FibManager> fibManager = l3protocol->getFibManager();
- fibManager->onFibRequest(*command);
+ l3protocol->injectInterest(*command);
}
void
@@ -79,9 +77,8 @@
shared_ptr<Interest> command(make_shared<Interest>(commandName));
StackHelper::getKeyChain().sign(*command);
- Ptr<L3Protocol> L3protocol = node->GetObject<L3Protocol>();
- shared_ptr<nfd::FibManager> fibManager = L3protocol->getFibManager();
- fibManager->onFibRequest(*command);
+ Ptr<L3Protocol> l3protocol = node->GetObject<L3Protocol>();
+ l3protocol->injectInterest(*command);
}
void