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

郑小辉 359267191 at qq.com
Tue Oct 27 20:06:13 PDT 2020


Hi,


Thank you very much for your reply.
My NDNSIM code is version 2.6, and my program works fine until this code is modified. This error occurs only after this code is modified.
If it wasn't due to this change, what caused the error?
Maybe the code I modified earlier conflicts with this code?



Thank you very much for your help


sincerely,
Gordon


------------------ 原始邮件 ------------------
发件人:                                                                                                                        "Spyridon Mastorakis"                                                                                    <smastorakis at unomaha.edu>;
发送时间: 2020年10月28日(星期三) 上午10:07
收件人: "郑小辉"<359267191 at qq.com>;
抄送: "ndnsim"<ndnsim at lists.cs.ucla.edu>;
主题: Re: [ndnSIM] An error when modifying the "forwarder.cpp"



 Hi, 
 
 I do not believe this specific error comes due to this modification. Unless, there is something that I am actually missing.
 
 
 Thanks,
 
 
    Spyridon (Spyros) Mastorakis
 Assistant Professor
 Computer Science Department
 University of Nebraska, Omaha
 Peter Kiewit Institute Room 175A
 https://sites.google.com/site/spyridonmastorakis
 
 
 
  On Oct 27, 2020, at 8:58 PM, 郑小辉 via ndnSIM <ndnsim at lists.cs.ucla.edu> wrote:
 
  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 problem The 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 _______________________________________________
 ndnSIM mailing list
 ndnSIM at lists.cs.ucla.edu
 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=E4yu7vTp94D1o8ib5MWKuYdzZY-jA_a3hm9kyy5KHsw&s=KWgKUVM66tztmdfi065IwO1YKAvIWlNdu8yNp_3c4Dk&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201028/9eb1b50f/attachment.html>


More information about the ndnSIM mailing list