<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Hitesh,</div><div class=""><br class=""></div><div class="">You actually have several ways to do it.  The “right” way is to request so called FIB status dataset from NFD (<a href="http://redmine.named-data.net/projects/nfd/wiki/FibMgmt#FIB-Dataset" class="">http://redmine.named-data.net/projects/nfd/wiki/FibMgmt#FIB-Dataset</a>).  However, given that ndnSIM is a simulator, you can do it directly:</div><div class=""><br class=""></div><div class="">Ptr<Node> node = ...</div><div class="">Ptr<ndn::L3Protocol> l3 = node->GetObject<ndn::L3Protocol>();</div><div class="">shared_ptr<nfd::Forwarder> fw = l3->getForwarder();</div><div class="">nfd::Fib& fib = fw->getFib();</div><div class=""><br class=""></div><div class="">for (const auto&& fibEntry : fib) {</div><div class="">  std::cout << " - “ << fibEntry.getPrefix() << std::endl;</div><div class="">  for (const auto&& nh : fibEntry.getNextHops()) {</div><div class="">    std::cout << "    - " << nh.getFace() << “, “ << nh.getFace().getId() << “, “ << nh.getCost() << std::endl;</div><div class="">  }</div><div class="">}</div><div class=""><br class=""></div><div class="">(I haven’t checked this code, so it may have some minor issues).</div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 25, 2015, at 9:28 AM, Hitesh Wadekar <<a href="mailto:wadekahn@clarkson.edu" class="">wadekahn@clarkson.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><p style="margin-bottom:0in;font-weight:normal;line-height:100%" class="">
Hey Guys,</p><div style="margin-bottom: 0in; font-weight: normal; line-height: 100%;" class="">

<br class="webkit-block-placeholder"></div><p style="margin-bottom:0in;font-weight:normal;line-height:100%" class="">
How can I get all the installed prefix information on a node from
application? For instance, I have a node object and I want to iterate
all the prefix configured for the installed application on that node.</p><div style="margin-bottom: 0in; font-weight: normal; line-height: 100%;" class="">

<br class="webkit-block-placeholder"></div><p style="margin-bottom:0in;font-weight:normal;line-height:100%" class="">
Thanks 
</p><div style="margin-bottom: 0in; font-weight: normal; line-height: 100%;" class="">

<br class="webkit-block-placeholder"></div>Cheer,<br class=""></div>Hitesh</div></div></blockquote></div></body></html>