<div dir="ltr"><div><div>You can get the pointer to the node sending the Interest as below. Get the node Id from the node object. <br><br><div style="margin-left:40px"> ns3::Ptr<ns3::Node> thisNode = ns3::NodeList::GetNode(ns3::Simulator::GetContext());<br></div><br></div>To answer your other question, I think it depends how you write your producer application logic. I think you should be able to filter out certain Interest, based on where you want to remain silent or not. <br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 28, 2016 at 5:00 AM, Shahid Md. Asif Iqbal <span dir="ltr"><<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear all,<br></div>How can I find the id of the node sending an interest in the forwarder.cpp and ndn-producer.cpp files?<br>And, is it reasonable a producer replying for some segments and remain silent for some segments of the same interest? And if it is please give some hints how to do that.<br></div>
<br>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>