fw: eliminate fibEntry in Strategy API
Strategy::lookupFib can be used to obtain FIB entry.
FIB lookup is skipped when strategy does not need it.
refs #3205
Change-Id: Icba67229cbc261d9def44ffa91461ea4b09982b2
diff --git a/daemon/fw/asf-probing-module.hpp b/daemon/fw/asf-probing-module.hpp
index a10b1f8..585b76a 100644
--- a/daemon/fw/asf-probing-module.hpp
+++ b/daemon/fw/asf-probing-module.hpp
@@ -41,19 +41,19 @@
ProbingModule(AsfMeasurements& measurements);
void
- scheduleProbe(shared_ptr<fib::Entry> fibEntry, const time::milliseconds& interval);
+ scheduleProbe(const fib::Entry& fibEntry, const time::milliseconds& interval);
shared_ptr<Face>
getFaceToProbe(const Face& inFace,
const Interest& interest,
- shared_ptr<fib::Entry> fibEntry,
+ const fib::Entry& fibEntry,
const Face& faceUsed);
bool
- isProbingNeeded(shared_ptr<fib::Entry> fibEntry, const ndn::Interest& interest);
+ isProbingNeeded(const fib::Entry& fibEntry, const ndn::Interest& interest);
void
- afterForwardingProbe(shared_ptr<fib::Entry> fibEntry, const ndn::Interest& interest);
+ afterForwardingProbe(const fib::Entry& fibEntry, const ndn::Interest& interest);
private:
// Used to associate FaceInfo with the face in a NextHop