26 #ifndef NFD_DAEMON_FW_ALGORITHM_HPP
27 #define NFD_DAEMON_FW_ALGORITHM_HPP
43 wouldViolateScope(
const Face& inFace,
const Interest& interest,
const Face& outFace);
70 time::steady_clock::TimePoint
76 fib::NextHopList::const_iterator
79 const shared_ptr<pit::Entry>& pitEntry);
92 const shared_ptr<pit::Entry>& pitEntry,
93 bool wantUnused =
false,
94 time::steady_clock::TimePoint now = time::steady_clock::TimePoint::min());
generalization of a network interface
Represents a nexthop record in a FIB entry.
std::vector< NextHop > NextHopList
fib::NextHopList::const_iterator findEligibleNextHopWithEarliestOutRecord(const Face &inFace, const Interest &interest, const fib::NextHopList &nexthops, const shared_ptr< pit::Entry > &pitEntry)
pick an eligible NextHop with earliest out-record
time::steady_clock::time_point getLastOutgoing(const pit::Entry &pitEntry)
DuplicateNonceWhere
indicates where duplicate Nonces are found
@ DUPLICATE_NONCE_OUT_SAME
out-record of same face
@ DUPLICATE_NONCE_NONE
no duplicate Nonce is found
@ DUPLICATE_NONCE_IN_SAME
in-record of same face
@ DUPLICATE_NONCE_OUT_OTHER
out-record of other face
@ DUPLICATE_NONCE_IN_OTHER
in-record of other face
bool isNextHopEligible(const Face &inFace, const Interest &interest, const fib::NextHop &nexthop, const shared_ptr< pit::Entry > &pitEntry, bool wantUnused, time::steady_clock::time_point now)
int findDuplicateNonce(const pit::Entry &pitEntry, Interest::Nonce nonce, const Face &face)
determine whether pitEntry has duplicate Nonce nonce
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
bool wouldViolateScope(const Face &inFace, const Interest &interest, const Face &outFace)
determine whether forwarding the Interest in pitEntry to outFace would violate scope
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...