Adding more components to CCNx stack
diff --git a/model/ccnx-route.cc b/model/ccnx-route.cc
index 704f08c..98e8b7b 100644
--- a/model/ccnx-route.cc
+++ b/model/ccnx-route.cc
@@ -19,7 +19,7 @@
#include "ccnx-route.h"
-#include "ns3/net-device.h"
+#include "ns3/ccnx-face.h"
#include "ns3/assert.h"
namespace ns3 {
@@ -41,20 +41,20 @@
}
void
-CcnxRoute::SetOutputDevice (Ptr<NetDevice> outputDevice)
+CcnxRoute::SetOutputFace (Ptr<CcnxFace> outputFace)
{
- m_outputDevice = outputDevice;
+ m_outputFace = outputFace;
}
-Ptr<NetDevice>
-CcnxRoute::GetOutputDevice (void) const
+Ptr<CcnxFace>
+CcnxRoute::GetOutputFace (void) const
{
- return m_outputDevice;
+ return m_outputFace;
}
std::ostream& operator<< (std::ostream& os, CcnxRoute const& route)
{
- os << "prefix=" << route.GetPrefix () << ", dev=" << route.GetOutputDevice ()->GetIfIndex ();
+ os << "prefix=" << route.GetPrefix () << ", " << route.GetOutputFace ();
return os;
}