Refactoring of CcnxForwardingHelper
diff --git a/helper/ccnx-forwarding-helper.cc b/helper/ccnx-forwarding-helper.cc
index c840d7a..dfc7905 100644
--- a/helper/ccnx-forwarding-helper.cc
+++ b/helper/ccnx-forwarding-helper.cc
@@ -42,12 +42,13 @@
}
void
-CcnxForwardingHelper::SetForwarding(Ptr<Ccnx> ccnx) const
+CcnxForwardingHelper::SetForwarding(Ptr<Ccnx> ccnx, Ptr<CcnxPit> pit) const
{
if(m_strategy == Ccnx::NDN_FLOODING)
{
Ptr<CcnxFloodingStrategy> ccnxForwarding = CreateObject<CcnxFloodingStrategy> ();
- ccnxForwarding->SetCcnx(ccnx);
+ //ccnxForwarding->SetCcnx(ccnx);
+ ccnxForwarding->SetPit(pit);
ccnx->SetForwardingStrategy (ccnxForwarding);
}
else if(m_strategy == Ccnx::NDN_BESTROUTE)