[ndnSIM] How to print FIB table?
Junxiao Shi
shijunxiao at email.arizona.edu
Mon Feb 20 11:03:19 PST 2017
Hi Sabet
void
> printFIB(Ptr<Node> node)
> {
> auto fib = node->GetObject<ndn::L3Protocol>()->getForwarder()-
> >getFib();
>
This line is trying to copy Fib type because 'auto' is deduced as
'nfd::Fib' value type. Change it to 'const nfd::Fib&' and this should
compile.
cout<<std::endl<<fib.size()<<std::endl;
> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170220/7b802f84/attachment-0001.html>
More information about the ndnSIM
mailing list