<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Shahram,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">If you give <i>name </i>to nodes, through AnnotatedTopologyReader, scenarioHelper or otherwise, you can use the helper with the signature you mentioned. If you take a look at <a href="http://ndnsim.net/2.3/doxygen/ndn-fib-helper_8cpp_source.html#l00117">its implementation</a> I guess you will find a clue how to use it.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Regards,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sabet<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br></div></div></div><div class="gmail_quote">On Sat, Dec 17, 2016 at 1:28 AM, Shahram Yousefi <span dir="ltr"><<a href="mailto:shahram2024@gmail.com" target="_blank">shahram2024@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">Hi.<br><br>I like to add new FIB entry at <b>fowarder.cpp</b>, "<i>onIncomingData</i>" Method during simulation.<br>I know that I can use "<b>FibHelper::AddRoute</b>", for Example :<br><br><i><b>AddRoute (const std::string &nodeName, const Name &prefix, uint32_t faceId, int32_t metric)</b></i><br><br>For  "prefix"  I can use    <b>data.getName()</b>.<br>For  "faceId"  I can use   <b> inFace.getId()</b>.<br>For  "metric"  I can use    <b>0 or any other value</b>.<br>But I don’t know what should I Use for "<b>nodeName</b>". <br><br>How could I get or fine Node name at fowarder.cpp during simulation?<br><br>Best regards.<br></div>
<br>______________________________<wbr>_________________<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" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div></div>