<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Yes, most probably.
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://sites.google.com/site/spyridonmastorakis" class="">https://sites.google.com/site/spyridonmastorakis</a></div>
</div>
</div>
<div style=""><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 27, 2020, at 10:06 PM, 郑小辉 <<a href="mailto:359267191@qq.com" class="">359267191@qq.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi,</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Thank you very much for your reply.</div>
<div class="">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.</div>
<div class="">If it wasn't due to this change, what caused the error?</div>
<div class="">Maybe the code I modified earlier conflicts with this code?</div>
</div>
<div class=""><br class="">
</div>
<div class="">Thank you very much for your help</div>
<div class=""><br class="">
</div>
<div class="">sincerely,</div>
<div class="">Gordon</div>
<div class="">
<div class=""><br class="">
</div>
<div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;" class="">
------------------ 原始邮件 ------------------</div>
<div style="font-size: 12px;background:#efefef;padding:8px;" class="">
<div class=""><b class="">发件人:</b> "Spyridon Mastorakis" <<a href="mailto:smastorakis@unomaha.edu" class="">smastorakis@unomaha.edu</a>>;</div>
<div class=""><b class="">发送时间:</b> 2020年10月28日(星期三) 上午10:07</div>
<div class=""><b class="">收件人:</b> "郑小辉"<<a href="mailto:359267191@qq.com" class="">359267191@qq.com</a>>;<wbr class=""></div>
<div class=""><b class="">抄送:</b> "ndnsim"<<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>>;<wbr class=""></div>
<div class=""><b class="">主题:</b> Re: [ndnSIM] An error when modifying the "forwarder.cpp"</div>
</div>
<div class=""><br class="">
</div>
Hi,
<div class=""><br class="">
</div>
<div class="">I do not believe this specific error comes due to this modification. Unless, there is something that I am actually missing.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__sites.google.com_site_spyridonmastorakis&d=DwMGbw&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=EjP4eXeQZy0Gwxc1VfLSX2OzL5lZiDIT8UPaWxOtHrY&s=3rdfBDVmEEAW1-T2k7kINDc_Ih9ntqdWMupGjbrMoL8&e=" class="">https://sites.google.com/site/spyridonmastorakis</a></div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 27, 2020, at 8:58 PM, 郑小辉 via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<pre class="">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</pre>
<pre class="">The modified code is as follows(in forwarder.cpp):</pre>
<pre class=""><b class=""><i class="">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;
}</i></b></pre>
<pre class="">The error message is as follows:</pre>
<pre class=""><i class=""><b class="">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</b></i>
</pre>
<div class=""><br class="">
</div>
<pre class=""><br class=""></pre>
<pre class="">Thank you very much for your help.

Sincerely,
Gordon</pre>
_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
<a href="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=" class="">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=</a>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>