<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>