29 namespace scope_prefix {
86 bool hasUnexpiredOutRecord = std::any_of(pitEntry.
out_begin(), pitEntry.
out_end(),
88 return &outRecord.getFace() == &face && outRecord.getExpiry() >= now;
90 if (hasUnexpiredOutRecord) {
94 bool hasUnexpiredOtherInRecord = std::any_of(pitEntry.
in_begin(), pitEntry.
in_end(),
96 return &inRecord.getFace() != &face && inRecord.getExpiry() >= now;
98 if (!hasUnexpiredOtherInRecord) {
111 if (inRecord.getLastNonce() == nonce) {
112 if (&inRecord.getFace() == &face) {
122 if (outRecord.getLastNonce() == nonce) {
123 if (&outRecord.getFace() == &face) {
141 return outRecord.getExpiry() >= now &&
142 outRecord.getIncomingNack() ==
nullptr;
bool canForwardToLegacy(const pit::Entry &pitEntry, const Face &face)
decide whether Interest can be forwarded to face
const InRecordCollection & getInRecords() const
const Name LOCALHOST("ndn:/localhost")
ndn:/localhost
generalization of a network interface
static time_point now() noexcept
contains information about an Interest from an incoming face
OutRecordCollection::iterator out_end()
represents an Interest packet
OutRecordCollection::iterator out_begin()
bool violatesScope(const pit::Entry &pitEntry, const Face &outFace)
InRecordCollection::iterator in_end()
Copyright (c) 2011-2015 Regents of the University of California.
ndn::nfd::FaceScope getScope() const
Name abstraction to represent an absolute name.
const Name LOCALHOP("ndn:/localhop")
ndn:/localhop
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
no duplicate Nonce is found
int findDuplicateNonce(const pit::Entry &pitEntry, uint32_t nonce, const Face &face)
determine whether pitEntry has duplicate Nonce nonce
InRecordCollection::iterator in_begin()
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
const Name & getName() const
contains information about an Interest toward an outgoing face
bool wouldViolateScope(const Face &inFace, const Interest &interest, const Face &outFace)
determine whether forwarding the Interest in pitEntry to outFace would violate scope ...
const OutRecordCollection & getOutRecords() const
const Name & getName() const