<div dir="ltr"><div>Hi Sofia</div><div><br></div><div>The FIB nexthop list only contains the routes added to the FIB.</div><div>If the routing helper is configured to insert only the shortest route, you'll see only one nexthop in the FIB nexthop list.</div><div>To see multiple nexthops, you need to configure the routing helper to insert multiple routes.<br></div><div><br></div><div>Yours, Junxiao<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 1, 2020 at 10:20 AM sofia sophie via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr"><div>Hi all,</div><div>I need your help. if it is possible.<br></div><div>In the forwarding strategy file, when we use a loop to get the node out Faces. It 
should return a list of all the node out faces, Isn't it?</div><div>In my case, it return just one out face for each node in the network. I don't  know why. <br></div><div>In my topology, each network node has at least two connected faces. <br></div><div>However, I need to get all the node outFaces. <br></div><div><br></div><div>I use the code below to get the node out faces:<br></div><div><br></div><div>for (const auto& nexthop : nexthops) {<br>                           Face& outFace = nexthop.getFace();<br>
                                std::cout <<"outFace.getId:  "<<outFace.getId()<<"     
outFace.getMetric:      "<<outFace.getMetric()<<std::endl;<br><br>                         if ((outFace.getId() == inFace.getId() && outFace.getLinkType() != ndn::nfd::LINK_TYPE_AD_HOC) ||<br>                                             wouldViolateScope(inFace, interest, outFace)) {<br>                                       continue;<br>                             }<br>
                                std::cout <<"outFace.getId:  "<<outFace.getId()<<"     
outFace.getMetric:      "<<outFace.getMetric()<<std::endl;<br>                   }</div><div><br></div><div><br></div><div>you find below the out put:</div><div><br></div><div>Node Id :  0<br>outFace.getId:       257     outFace.getMetric:      1*<br>Node Id :   1<br>outFace.getId:       257     outFace.getMetric:      1<br>Node Id :    4<br>outFace.getId:       258     outFace.getMetric:      30<br>Node Id :   12<br>outFace.getId:      258     outFace.getMetric:      1<br>Node Id :    13<br>outFace.getId:      258     outFace.getMetric:      1<br>Node Id :    14<br>outFace.getId:      258     outFace.getMetric:      4<br></div><div><br></div><div><br></div><div>I will be thankful for your help.</div><div>Best Regards</div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div>