36 const shared_ptr<pit::Entry>& pitEntry)
38 int nOutRecordsNotNacked = 0;
39 Face* lastFaceNotNacked =
nullptr;
43 if (inNack ==
nullptr) {
44 ++nOutRecordsNotNacked;
45 lastFaceNotNacked = &outR.getFace();
57 if (nOutRecordsNotNacked == 1) {
58 BOOST_ASSERT(lastFaceNotNacked !=
nullptr);
60 if (inR != pitEntry->in_end()) {
64 " nack-to(bidirectional)=" << lastFaceNotNacked->getId() <<
66 this->sendNackForProcessNackTraits(pitEntry, *lastFaceNotNacked, outNack);
71 if (nOutRecordsNotNacked > 0) {
74 " waiting=" << nOutRecordsNotNacked);
81 " nack-to=all out-nack=" << outNack.
getReason());
82 this->sendNacksForProcessNackTraits(pitEntry, outNack);
const Interest & getInterest() const
#define NFD_LOG_DEBUG(expression)
NackReason
indicates the reason type of a network NACK
void processNack(const Face &inFace, const lp::Nack &nack, const shared_ptr< pit::Entry > &pitEntry)
represents a Network Nack
NackReason getReason() const
Table::const_iterator iterator
Copyright (c) 2011-2015 Regents of the University of California.
contains information about an Interest toward an outgoing face
#define NFD_LOG_INIT(name)
bool isLessSevere(lp::NackReason x, lp::NackReason y)
compare NackReason for severity