<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Joao,</div><div><br></div><div>What I meant is that the code (and simulations that we did originally) did not involve much dynamics with FIB. There is nothing against dynamics.</div><div><br></div><div>The only potential drawback is that there is no implementation of the specialized face/FIB interface (e.g., there is no ccndc-like command that can configure routes), but you either can use FIB methods directly (recommended) or via ndn::StackHelper (I would not really recommend this way, but it is possible).  Ideally, we should add some protocol to ndnSIM, similar (not necessary the same as) CCNx face management and registration protocol (<a href="http://www.ccnx.org/releases/latest/doc/technical/Registration.html">http://www.ccnx.org/releases/latest/doc/technical/Registration.html</a>).</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On May 3, 2013, at 10:22 AM, Joćo Torres <<a href="mailto:torres.jv@gmail.com">torres.jv@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div style="">Could you clarify your statement: FIB content "<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">is (it was) not intended to be dynamically modified"?</span></div>
<div style=""><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Is there any reason against simulations in ndnsim involving such dynamics?</span></div><div style=""><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div><div style=""><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">I am working with a simultion to populate FIB dynamicly based on content requests.</span></div><div style=""><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div><div style=""><font face="arial, sans-serif">Regards,</font></div><div style=""><font face="arial, sans-serif">Joao Vitor</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/23 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again,<br>
<br>
There is no tracer for FIB content, since it is (it was) not intended to be dynamically modified.  If you need to print out FIB contents (e.g., periodically, using Simulator::Schedule), there are a couple of ways.   If you don't care about the format, you can do the following:<br>

<br>
input:   Ptr<Node> node;<br>
std::cout << *node->GetObject<ndn::Fib> () << std::endl;<br>
<br>
If you need more precise control over what is printed out, it is also possible, but a little bit more complicated:<br>
<br>
Ptr<ndn::Fib> fib = node->GetObject<ndn::Fib> ();<br>
for (Ptr<ndn::fib::Entry> entry = fib->Begin (); entry != fib->End (); entry = fib->Next (entry))<br>
{<br>
    std::cout << entry->GetPrefix () << std::endl;<br>
    ...<br>
}<br>
<br>
---<br>
Alex<br>
<div><div class="h5"><br>
On Apr 23, 2013, at 12:33 AM, Xee <<a href="mailto:1839750381@qq.com">1839750381@qq.com</a>> wrote:<br>
<br>
> Hi Alex<br>
><br>
> I need to print FIB entries, how can I get that. Is there any tracer to print fib entries ?<br>
><br>
> rgd,<br>
> -Xee<br>
</div></div>> _______________________________________________<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">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
<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" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div>
</blockquote></div><br></body></html>