From 092e4903066f66f51c60ca8a0cef4cabbe7bafaa Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 28 Mar 2019 11:16:01 +0100 Subject: [HICN-11] Fix retransmission count when sending first interest. Change-Id: Ia4b754c555fa83746680d9dcfd2c73f7d55c72a5 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/protocols/raaqm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- cgit 1.2.3-korg