[Ndn-interest] An error when modifying the "forwarder.cpp"
郑小辉
359267191 at qq.com
Mon Oct 26 01:50:28 PDT 2020
Hi, I tried to reduce the frequency of forwarding interest packets by half. I only modified the code in forwarder.cpp in NS3, and an error occurred later. Does anyone know how to solve this problemThe modified code is as follows(in forwarder.cpp):void Forwarder::onOutgoingInterest(const shared_ptr<pit::Entry>& pitEntry, Face& outFace, const Interest& interest) { NFD_LOG_DEBUG( "onOutgoingInterest face=" << outFace.getId() << " interest=" << pitEntry->getName()); pitEntry->insertOrUpdateOutRecord(outFace, interest); //begin std::default_random_engine e; std::bernoulli_distribution u; if (interest.getName().toUri().find(std::string("manifest")) == std::string::npos && u(e)) return; //end modify by tian 2020/10/24 outFace.sendInterest(interest); ++m_counters.nOutInterests; }The error message is as follows:terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<nfd::rib::RibManager::Error> >' what(): Error in setting interest filter (/localhost/nfd): request timed out
Thank you very much for your help. Sincerely, Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20201026/829d0e97/attachment.html>
More information about the Ndn-interest
mailing list