apps: Adding additional NS-3 attribute to control the overall number of sent Interest (previously, application runtime defined total number of Interests)
diff --git a/apps/ndn-consumer-cbr.cc b/apps/ndn-consumer-cbr.cc
index b384063..84fdd18 100644
--- a/apps/ndn-consumer-cbr.cc
+++ b/apps/ndn-consumer-cbr.cc
@@ -52,10 +52,18 @@
StringValue ("1.0"),
MakeDoubleAccessor (&ConsumerCbr::m_frequency),
MakeDoubleChecker<double> ())
+
.AddAttribute ("Randomize", "Type of send time randomization: none (default), uniform, exponential",
StringValue ("none"),
MakeStringAccessor (&ConsumerCbr::SetRandomize, &ConsumerCbr::GetRandomize),
MakeStringChecker ())
+
+ .AddAttribute ("MaxSeq",
+ "Maximum sequence number to request",
+ IntegerValue (std::numeric_limits<uint32_t>::max ()),
+ MakeIntegerAccessor (&ConsumerCbr::m_seqMax),
+ MakeIntegerChecker<uint32_t> ())
+
;
return tid;