<div dir="ltr">Thank you. I am able to detect the NACK.<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 18, 2018 at 9:03 AM Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@cs.ucla.edu">mastorakis@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>most probably the NACK is not sent or received.</div><div><br></div><div>Enable the nfd.Forwarder logging component to see what exactly is going on.</div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div><div><blockquote type="cite"><div>On Sep 17, 2018, at 7:55 PM, madhurima buragohain <<a href="mailto:madhurimajya@gmail.com" target="_blank">madhurimajya@gmail.com</a>> wrote:</div><br class="m_-4401477394146530731Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I want to send a NACK to the downstream when the PIT approaches it limit<br></div><div dir="ltr"><br></div><div dir="ltr">void<br>Forwarder::onIncomingInterest(Face& inFace, const Interest& interest)</div><div dir="ltr">{<br></div><div dir="ltr">.............</div><div>if (m_pit.size()< 20)</div><div>{<br></div><div dir="ltr">lp::Nack nack(interest);<br>nack.setReason(lp::NackReason::X );</div><div dir="ltr">inFace.sendNack(nack);</div><div dir="ltr">}<br></div><div dir="ltr">............<br></div><div dir="ltr">}           <br></div><div dir="ltr"><br></div><div>But when I want to print a statement in the below function:<br></div><div dir="ltr">void<br>Forwarder::onIncomingNack(Face& inFace, const lp::Nack& nack)<br>{<br><br>    std::cout <<"\nNACK is received\n";</div><div dir="ltr">..................<br></div><div dir="ltr"><br></div><div dir="ltr">}<br>       <br></div><div>The statement is not printed.</div><div>I could not figure out the reason. Could anyone please help me?      <br></div><div><br></div><div>PS: I have modified the nack-header.cpp file for introducing new NACK X.  <br></div><div dir="ltr">           <br><br></div></div></div></div></div></div></blockquote></div><br></div></div></blockquote></div>