<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Alex,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have coded ndn-grid.py like this:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">void<br>printFIB(Ptr<Node> node)<br>{<br>    auto fib = node->GetObject<ndn::L3Protocol>()->getForwarder()->getFib();<br>    cout<<std::endl<<fib.size()<<std::endl;<br>}<br></blockquote><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">and called it in scenario:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Simulator::Schedule(Seconds(0.0), printFIB, nodes.Get(0));<br></blockquote><br></div><div class="gmail_extra">Compiler says:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">error: use of deleted function ‘nfd::Fib::Fib(const nfd::Fib&)’<br>note: ‘nfd::Fib::Fib(const nfd::Fib&)’ is implicitly deleted because the default definition would be ill-formed:<br> class Fib : noncopyable<br></blockquote><div><br></div><div>Could you refer my to the correct example of correct C++ cunstructs?<br><br></div><div>Thanks,<br></div><div>Sabet <br></div><br><br><div class="gmail_quote">On Fri, Jan 22, 2016 at 10:40 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In theory, you can send interests /localhost/nfd/fib/list and process the result (you can check how it is done in nfd-status implementation).<br>
<br>
More practically, in the simulation you can simply enumerate FIB entries.  There is a commented out example in `examples/ndn-grid.py` how to do it in python.  In C++ it is essentially the same thing, you just need to change to C++ constructs (check mailing list history, I think I showed an example before).<br>
<br>
--<br>
Alex<br>
<div><div class="h5"><br>
> On Jan 21, 2016, at 10:49 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com">anilj.mailing@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> Is it possible to print the content of FIB table at run time to check what prefixes are configured and on which faces?<br>
><br>
> What command is to be used towards NFD to display this information?<br>
><br>
> /anil.<br>
><br>
</div></div>> ______________________________<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" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br>
<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" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div></div>