[ndnSIM] fib table in ndnSIM

narjes aloulou aloulounarjes at yahoo.fr
Fri Apr 17 08:40:56 PDT 2015


Hi,

I use the ndnSIM v1. The following code displays the content of FIB table for each node: 

  for (NodeList::Iterator node = NodeList::Begin (); node != NodeList::End (); node ++)
  {
   std::cout << "Node <" << ((*node)->GetId ())<<"\n";
   Ptr<ndn::Fib> fib = (*node)->GetObject<ndn::Fib> ();
   for (Ptr<ndn::fib::Entry> entry = fib->Begin (); entry != fib->End (); entry = fib->Next (entry))
    {
      std::cout << entry->GetPrefix () ;  
      BOOST_FOREACH (const ndn::fib::FaceMetric &faceMetric, entry->m_faces)
      {
         std::cout <<"face=" << faceMetric.GetFace ()->GetId()<<"\n";
      }
    }
   std::cout <<"==============="<<std::endl;
  }

Best Regards
--------------------------------------------
En date de : Ven 17.4.15, Anwar Kalghoum <anwar.kalghoum at yahoo.fr> a écrit :

 Objet: [ndnSIM] fib table in ndnSIM
 À: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
 Date: Vendredi 17 avril 2015, 16h18
 
 Hi,
 How to
 show the contents of the FIB table in ndnSIM ?
 
 thank you
 
 
 -----La pièce jointe associée suit-----
 
 _______________________________________________
 ndnSIM mailing list
 ndnSIM at lists.cs.ucla.edu
 http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
 




More information about the ndnSIM mailing list