Temporary commit
diff --git a/helper/ccnx-decoding-helper.cc b/helper/ccnx-decoding-helper.cc
index 54f636b..af945c5 100644
--- a/helper/ccnx-decoding-helper.cc
+++ b/helper/ccnx-decoding-helper.cc
@@ -29,6 +29,10 @@
#include "ns3/ccnb-parser-dtag.h"
+#include "ns3/log.h"
+
+NS_LOG_COMPONENT_DEFINE ("CcnxDecodingHelper");
+
namespace ns3 {
size_t
@@ -40,7 +44,8 @@
Ptr<CcnbParser::Block> root = CcnbParser::Block::ParseBlock (i);
root->accept (interestVisitor, &interest);
- root = 0;
+ NS_LOG_DEBUG ("refs: " << root->GetReferenceCount ());
+ NS_LOG_DEBUG ("refs: " << DynamicCast<CcnbParser::BaseTag> (root)->m_nestedTags.front ()->GetReferenceCount ());
return i.GetDistanceFrom (start);
}
diff --git a/wscript b/wscript
index a16b857..3264657 100644
--- a/wscript
+++ b/wscript
@@ -77,6 +77,9 @@
obj = bld.create_ns3_program('annotated-topology', ['NDNabstraction', 'point-to-point-layout'])
obj.source = 'examples/annotated-topology-read-example.cc'
+ obj = bld.create_ns3_program('interest-header-example', ['NDNabstraction'])
+ obj.source = 'examples/interest-header-example.cc'
+
# for path in ["examples"]:
# anode = bld.path.find_dir (path)
# if not anode or not anode.is_child_of(bld.srcnode):