42 const shared_ptr<pit::Entry>& pitEntry)
51 fib::NextHopList::const_iterator it = std::find_if(nexthops.begin(), nexthops.end(),
54 if (it == nexthops.end()) {
59 Face& outFace = it->getFace();
bool canForwardToLegacy(const pit::Entry &pitEntry, const Face &face)
decide whether Interest can be forwarded to face
#define NFD_REGISTER_STRATEGY(StrategyType)
registers a built-in strategy
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
BestRouteStrategy(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
static const Name STRATEGY_NAME
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
std::vector< fib::NextHop > NextHopList
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
represents a forwarding strategy
void sendInterest(const shared_ptr< pit::Entry > &pitEntry, Face &outFace, bool wantNewNonce=false)
send Interest to outFace
represents a nexthop record in FIB entry
const NextHopList & getNextHops() const
void rejectPendingInterest(const shared_ptr< pit::Entry > &pitEntry)
decide that a pending Interest cannot be forwarded
const fib::Entry & lookupFib(const pit::Entry &pitEntry) const
performs a FIB lookup, considering Link object if present