summaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-03-28 11:16:01 +0100
committerMauro Sardara <msardara@cisco.com>2019-03-28 11:16:01 +0100
commit092e4903066f66f51c60ca8a0cef4cabbe7bafaa (patch)
tree96212ab2a21afe9aba7eab8c8feb4af2b41cab74 /libtransport
parent4d480ed760ebf0d8d33d91a6ede67e022106e8f5 (diff)
[HICN-11] Fix retransmission count when sending first interest.
Change-Id: Ia4b754c555fa83746680d9dcfd2c73f7d55c72a5 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/hicn/transport/protocols/raaqm.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/protocols/raaqm.cc b/libtransport/src/hicn/transport/protocols/raaqm.cc
index b10457f40..b8a7c9610 100644
--- a/libtransport/src/hicn/transport/protocols/raaqm.cc
+++ b/libtransport/src/hicn/transport/protocols/raaqm.cc
@@ -487,7 +487,9 @@ void RaaqmTransportProtocol::sendInterest(std::uint64_t next_suffix) {
return;
}
- interest_retransmissions_[next_suffix & mask] = 0;
+ // This is set to ~0 so that the next interest_retransmissions_ + 1, performed
+ // by sendInterest, will result in 0
+ interest_retransmissions_[next_suffix & mask] = ~0;
interest_timepoints_[next_suffix & mask] = utils::SteadyClock::now();
sendInterest(std::move(interest));
}