ccnx-grid example corrections
diff --git a/helper/ccnx-forwarding-helper.cc b/helper/ccnx-forwarding-helper.cc
index dfc7905..6a8d3fb 100644
--- a/helper/ccnx-forwarding-helper.cc
+++ b/helper/ccnx-forwarding-helper.cc
@@ -22,6 +22,7 @@
#include "ns3/node-list.h"
#include "ns3/simulator.h"
#include "ns3/ccnx-forwarding-strategy.h"
+#include "ns3/ccnx-bestroute-strategy.h"
#include "ccnx-forwarding-helper.h"
namespace ns3 {
@@ -52,7 +53,12 @@
ccnx->SetForwardingStrategy (ccnxForwarding);
}
else if(m_strategy == Ccnx::NDN_BESTROUTE)
- {}
+ {
+ Ptr<CcnxBestRouteStrategy> ccnxForwarding = CreateObject<CcnxBestRouteStrategy> ();
+ //ccnxForwarding->SetCcnx(ccnx);
+ ccnxForwarding->SetPit(pit);
+ ccnx->SetForwardingStrategy (ccnxForwarding);
+ }
else if (m_strategy == Ccnx::NDN_RANKING)
{}
}