[ndnSIM] An error when modifying the "forwarder.cpp"

郑小辉 359267191 at qq.com
Tue Oct 27 18:58:04 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/ndnsim/attachments/20201028/48458a31/attachment.html>


More information about the ndnSIM mailing list