model: Small modification in BestRoute strategy
There is no real need to call parent's (green-yellow-red strategy's)
DoPropagateInterest method, since everything what it is doing is already
incorporated in the logic of the BestRoute strategy.
closes #32
diff --git a/model/fw/best-route.cc b/model/fw/best-route.cc
index 59f8720..21a6b57 100644
--- a/model/fw/best-route.cc
+++ b/model/fw/best-route.cc
@@ -71,10 +71,13 @@
{
NS_LOG_FUNCTION (this << header->GetName ());
- // Try to work out with just green faces
- bool greenOk = super::DoPropagateInterest (inFace, header, origPacket, pitEntry);
- if (greenOk)
- return true;
+ // No real need to call parent's (green-yellow-red's strategy) method, since it is incorporated
+ // in the logic of the BestRoute strategy
+ //
+ // // Try to work out with just green faces
+ // bool greenOk = super::DoPropagateInterest (inFace, header, origPacket, pitEntry);
+ // if (greenOk)
+ // return true;
int propagatedCount = 0;