<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">you could just attach it as the last component of the Interest name and send it out. In this way, intermediate nodes can extract the last component of the Interest name and figure out the id of the node that generated this Interest.</div><div class=""><br class=""></div><div class="">Hope that this helps!</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><span class="" style="float: none; display: inline !important;"><br class=""></span></div></div></div><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 4, 2016, at 10:45 PM, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" class="">asifcsep@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear Anil and others,<div class="">I might not have made my question clear, actually I want to know when  an intermediate node receives an interest, the id of the node who has generated the interest.Not the node which is currently receiving or forwarding that interest.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Mar 4, 2016 at 1:46 PM, Anil Jangam <span dir="ltr" class=""><<a href="mailto:anilj.mailing@gmail.com" target="_blank" class="">anilj.mailing@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class="">You can get the pointer to the node sending the Interest as below. Get the node Id from the node object. <br class=""><br class=""><div style="margin-left:40px" class=""> ns3::Ptr<ns3::Node> thisNode = ns3::NodeList::GetNode(ns3::Simulator::GetContext());<br class=""></div><br class=""></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 class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Sun, Feb 28, 2016 at 5:00 AM, Shahid Md. Asif Iqbal <span dir="ltr" class=""><<a href="mailto:asifcsep@gmail.com" target="_blank" class="">asifcsep@gmail.com</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class=""><div class="">Dear all,<br class=""></div>How can I find the id of the node sending an interest in the forwarder.cpp and ndn-producer.cpp files?<br class="">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 class=""></div>
<br class=""></div></div>_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</blockquote></div><br class=""></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></div></body></html>