Solving a couple of bugs resulting from the packet format changes. Code compiles, but haven't fully tested yet
diff --git a/model/ndn-l3-protocol.cc b/model/ndn-l3-protocol.cc
index 850f84f..b0957c5 100644
--- a/model/ndn-l3-protocol.cc
+++ b/model/ndn-l3-protocol.cc
@@ -34,8 +34,8 @@
#include "ns3/ndn-header-helper.h"
#include "ns3/ndn-pit.h"
-#include "ns3/ndn-interest-header.h"
-#include "ns3/ndn-content-object-header.h"
+#include "ns3/ndn-interest.h"
+#include "ns3/ndn-content-object.h"
#include "ns3/ndn-face.h"
#include "ns3/ndn-forwarding-strategy.h"
@@ -258,7 +258,7 @@
HeaderHelper::Type type = HeaderHelper::GetNdnHeaderType (p);
switch (type)
{
- case HeaderHelper::INTEREST:
+ case HeaderHelper::INTEREST_NDNSIM:
{
s_interestCounter ++;
Ptr<InterestHeader> header = Create<InterestHeader> ();
@@ -274,7 +274,7 @@
// OnInterest (face, header, p/*original packet*/);
break;
}
- case HeaderHelper::CONTENT_OBJECT:
+ case HeaderHelper::CONTENT_OBJECT_NDNSIM:
{
s_dataCounter ++;
Ptr<ContentObjectHeader> header = Create<ContentObjectHeader> ();
@@ -288,6 +288,10 @@
m_forwardingStrategy->OnData (face, header, packet/*payload*/, p/*original packet*/);
break;
}
+ case HeaderHelper::INTEREST_CCNB:
+ case HeaderHelper::CONTENT_OBJECT_CCNB:
+ NS_FATAL_ERROR ("ccnb support is broken in this implementation");
+ break;
}
// exception will be thrown if packet is not recognized