@@ -49,8 +49,7 @@ RandomLoadBalancerStrategy::~RandomLoadBalancerStrategy()
4949static bool
5050canForwardToNextHop (const Face& inFace, shared_ptr<pit::Entry> pitEntry, const fib::NextHop& nexthop)
5151{
52- return !wouldViolateScope (inFace, pitEntry->getInterest (), nexthop.getFace ()) &&
53- canForwardToLegacy (*pitEntry, nexthop.getFace ());
52+ return !wouldViolateScope (inFace, pitEntry->getInterest (), nexthop.getFace ());
5453}
5554
5655static bool
@@ -61,7 +60,7 @@ hasFaceForForwarding(const Face& inFace, const fib::NextHopList& nexthops, const
6160}
6261
6362void
64- RandomLoadBalancerStrategy::afterReceiveInterest (const FaceEndpoint& ingress , const Interest& interest ,
63+ RandomLoadBalancerStrategy::afterReceiveInterest (const Interest& interest , const FaceEndpoint& ingress ,
6564 const shared_ptr<pit::Entry>& pitEntry)
6665{
6766 NFD_LOG_TRACE (" afterReceiveInterest" );
@@ -92,7 +91,7 @@ RandomLoadBalancerStrategy::afterReceiveInterest(const FaceEndpoint& ingress, co
9291 }
9392 } while (!canForwardToNextHop (ingress.face , pitEntry, *selected));
9493
95- this ->sendInterest (pitEntry, FaceEndpoint ( selected->getFace (), 0 ), interest );
94+ this ->sendInterest (interest, selected->getFace (), pitEntry );
9695}
9796
9897const Name&
0 commit comments