[ndnSIM] An error when modifying the "forwarder.cpp"
Spyridon Mastorakis
smastorakis at unomaha.edu
Tue Oct 27 19:07:32 PDT 2020
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<mailto: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<mailto: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/b09d104a/attachment.html>
More information about the ndnSIM
mailing list