<div dir="ltr">Thank you, everyone, I have solved the problem using the following method:<div><br></div>Ptr<ndn::ContentStore> cs=router->GetObject<ndn::ContentStore>;  //(1)<br>cs->Print(file);<br>Simulator::Schedule(...);<div><br><div>I got the correct entry, but, when I used the method in "<a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cpp">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cpp</a>", line 79-81,</div><div>auto ndn = routet->GetObject<ndn::L3Protocol>();<br>    for (const auto& entry : ndn->getForwarder()->getCs()) {  //(2)<div>      .......</div></div><div><br></div><div>the entry size is always 0, i am confused what's the difference between (1) and (2) to get the CS pointer ?</div></div><div><br></div><div>Thanks</div></div>