42 const shared_ptr<pit::Entry>& pitEntry)
52 for (fib::NextHopList::const_iterator it = nexthops.begin(); it != nexthops.end(); ++it) {
53 Face& outFace = it->getFace();
bool canForwardToLegacy(const pit::Entry &pitEntry, const Face &face)
decide whether Interest can be forwarded to face
generalization of a network interface
represents an Interest packet
BestRouteStrategy(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
Copyright (c) 2011-2015 Regents of the University of California.
NFD_REGISTER_STRATEGY(AccessStrategy)
std::vector< fib::NextHop > NextHopList
void rejectPendingInterest(const shared_ptr< pit::Entry > &pitEntry)
decide that a pending Interest cannot be forwarded
Name abstraction to represent an absolute name.
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
represents a forwarding strategy
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
const fib::Entry & lookupFib(const pit::Entry &pitEntry) const
performs a FIB lookup, considering Link object if present
const NextHopList & getNextHops() const
void sendInterest(const shared_ptr< pit::Entry > &pitEntry, Face &outFace, const Interest &interest)
send Interest to outFace
bool wouldViolateScope(const Face &inFace, const Interest &interest, const Face &outFace)
determine whether forwarding the Interest in pitEntry to outFace would violate scope ...
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
static const Name STRATEGY_NAME