From e558c3bac52682e93c7dcab94b3ac4200e88587d Mon Sep 17 00:00:00 2001 From: michele papalini Date: Wed, 16 Oct 2019 17:31:14 +0200 Subject: [HICN-333] fix addRetransmissions in RTC consumer socket Signed-off-by: michele papalini Change-Id: Id9fb3a5ae6355e901ba2f2d4a93e8ad241b4410c --- libtransport/src/hicn/transport/protocols/rtc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtransport') 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 -- cgit 1.2.3-korg