When giving up PIT entry, remove all outgoing interests. Otherwise,
everything can stuck (was happening...)
Modified experiment with synthetic topology
diff --git a/helper/ccnx-consumer-helper.cc b/helper/ccnx-consumer-helper.cc
index f6fcb7c..dc29d9a 100644
--- a/helper/ccnx-consumer-helper.cc
+++ b/helper/ccnx-consumer-helper.cc
@@ -32,12 +32,18 @@
CcnxConsumerHelper::CcnxConsumerHelper (const std::string &prefix)
{
m_factory.SetTypeId ("ns3::CcnxConsumer");
-
+
+ SetPrefix (prefix);
+}
+
+void
+CcnxConsumerHelper::SetPrefix (const std::string &prefix)
+{
CcnxNameComponentsValue prefixValue;
prefixValue.DeserializeFromString (prefix, MakeCcnxNameComponentsChecker ());
m_factory.Set ("InterestName", prefixValue);
}
-
+
void
CcnxConsumerHelper::SetAttribute (std::string name, const AttributeValue &value)
{
diff --git a/helper/ccnx-consumer-helper.h b/helper/ccnx-consumer-helper.h
index 158ede7..aa7c8c9 100644
--- a/helper/ccnx-consumer-helper.h
+++ b/helper/ccnx-consumer-helper.h
@@ -44,7 +44,13 @@
* \param prefix Prefix which will be requested by the consumer applications
*/
CcnxConsumerHelper (const std::string &prefix);
-
+
+ /**
+ * @brief Set the prefix consumer will be requesting
+ */
+ void
+ SetPrefix (const std::string &prefix);
+
/**
* \brief Helper function used to set the underlying application attributes.
*