26 #ifndef NFD_DAEMON_FW_ALGORITHM_HPP
27 #define NFD_DAEMON_FW_ALGORITHM_HPP
42 wouldViolateScope(
const Face& inFace,
const Interest& interest,
const Face& outFace);
69 time::steady_clock::time_point
75 fib::NextHopList::const_iterator
78 const shared_ptr<pit::Entry>& pitEntry);
91 const shared_ptr<pit::Entry>& pitEntry,
92 bool wantUnused =
false,
93 time::steady_clock::time_point now = time::steady_clock::time_point::min());
Generalization of a network interface.
Represents a nexthop record in a FIB entry.
Represents an entry in the Interest table (PIT).
std::vector< NextHop > NextHopList
A collection of nexthops in a FIB entry.
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)
Determines whether a NextHop is eligible, i.e., not the same inFace.
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.
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
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.
time::steady_clock::time_point getLastOutgoing(const pit::Entry &pitEntry)
bool wouldViolateScope(const Face &inFace, const Interest &interest, const Face &outFace)
Determine whether forwarding the Interest in pitEntry to outFace would violate scope.