Implementing face clean up callback in forwarding strategy
Necessary for FwStats strategy that uses CcnxFace object as a key to
several statistics parameters.
diff --git a/apps/ccnx-app.cc b/apps/ccnx-app.cc
index 8cdddac..59da17c 100644
--- a/apps/ccnx-app.cc
+++ b/apps/ccnx-app.cc
@@ -28,6 +28,7 @@
#include "ns3/ccnx.h"
#include "ns3/ccnx-fib.h"
#include "ns3/ccnx-app-face.h"
+#include "ns3/ccnx-forwarding-strategy.h"
NS_LOG_COMPONENT_DEFINE ("CcnxApp");
@@ -151,6 +152,7 @@
// step 2. Remove face from CCNx stack
GetNode ()->GetObject<Ccnx> ()->RemoveFace (m_face);
GetNode ()->GetObject<CcnxFib> ()->RemoveFromAll (m_face);
+ GetNode ()->GetObject<CcnxForwardingStrategy> ()->RemoveFace (m_face); // notify that face is removed
// step 3. Destroy face
NS_ASSERT_MSG (m_face->GetReferenceCount ()==1,