<div dir="ltr">Thank you Alex.<div><br></div><div>It worked, however, I will prefer to use aggregation object on node for prefix through AppHelper. It will help to track and get the application based configured prefix as we can configure many applications on same node.</div><div><br></div><div>Cheer,</div><div>Hitesh</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 2:53 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Hitesh,</div><div><br></div><div>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" target="_blank">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><br></div><div>Ptr<Node> node = ...</div><div>Ptr<ndn::L3Protocol> l3 = node->GetObject<ndn::L3Protocol>();</div><div>shared_ptr<nfd::Forwarder> fw = l3->getForwarder();</div><div>nfd::Fib& fib = fw->getFib();</div><div><br></div><div>for (const auto&& fibEntry : fib) {</div><div>  std::cout << " - “ << fibEntry.getPrefix() << std::endl;</div><div>  for (const auto&& nh : fibEntry.getNextHops()) {</div><div>    std::cout << "    - " << nh.getFace() << “, “ << nh.getFace().getId() << “, “ << nh.getCost() << std::endl;</div><div>  }</div><div>}</div><div><br></div><div>(I haven’t checked this code, so it may have some minor issues).</div><div><br></div><div>—</div><span class="HOEnZb"><font color="#888888"><div>Alex</div><br></font></span><div><blockquote type="cite"><span class=""><div>On Feb 25, 2015, at 9:28 AM, Hitesh Wadekar <<a href="mailto:wadekahn@clarkson.edu" target="_blank">wadekahn@clarkson.edu</a>> wrote:</div><br></span><div><div class="h5"><div><div dir="ltr"><div><p style="margin-bottom:0in;font-weight:normal;line-height:100%">
Hey Guys,</p><div style="margin-bottom:0in;font-weight:normal;line-height:100%">

<br></div><p style="margin-bottom:0in;font-weight:normal;line-height:100%">
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%">

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

<br></div>Cheer,<br></div>Hitesh</div></div></div></div></blockquote></div></div></blockquote></div><br></div>