summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-10-16 17:31:14 +0200
committermichele papalini <micpapal@cisco.com>2019-10-16 17:31:14 +0200
commite558c3bac52682e93c7dcab94b3ac4200e88587d (patch)
tree706bd5a1186b18435fd8545e3fa8a0a66d8031db
parentd173417e820c98d4a8734703f36dbeb3a82ec03f (diff)
[HICN-333] fix addRetransmissions in RTC consumer socket
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: Id9fb3a5ae6355e901ba2f2d4a93e8ad241b4410c
-rw-r--r--libtransport/src/hicn/transport/protocols/rtc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/protocols/rtc.cc b/libtransport/src/hicn/transport/protocols/rtc.cc
index 92ef4ffbc..0b02db438 100644
--- a/libtransport/src/hicn/transport/protocols/rtc.cc
+++ b/libtransport/src/hicn/transport/protocols/rtc.cc
@@ -509,7 +509,7 @@ void RTCTransportProtocol::addRetransmissions(uint32_t start, uint32_t stop) {
for (uint32_t i = start; i < stop; i++) {
auto it = interestRetransmissions_.find(i);
if (it == interestRetransmissions_.end()) {
- uint32_t pkt = actualSegment_ & modMask_;
+ uint32_t pkt = i & modMask_;
if (lastSegNacked_ <= i &&
inflightInterests_[pkt].state != received_) {
// it must be larger than the last past nack received