apps: Fix wrong behaviour of default Size in ConsumerWindow
Change-Id: Iaacdab1ced3c531741f83b134b54637680b10c78
diff --git a/apps/ndn-consumer-window.cpp b/apps/ndn-consumer-window.cpp
index b806190..79c31e2 100644
--- a/apps/ndn-consumer-window.cpp
+++ b/apps/ndn-consumer-window.cpp
@@ -26,6 +26,7 @@
#include "ns3/string.h"
#include "ns3/uinteger.h"
#include "ns3/double.h"
+#include <limits>
NS_LOG_COMPONENT_DEFINE("ndn.ConsumerWindow");
@@ -127,7 +128,7 @@
{
m_maxSize = size;
if (m_maxSize < 0) {
- m_seqMax = 0;
+ m_seqMax = std::numeric_limits<uint32_t>::max();
return;
}