aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/interfaces
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-10-04 11:20:18 +0200
committermichele papalini <micpapal@cisco.com>2019-10-04 11:20:18 +0200
commitceba475ec9badd75516863b7bec46d5d10f0b957 (patch)
treeb732b6c5dc81d43f245dec3562d3afce5d2ea48d /libtransport/src/hicn/transport/interfaces
parenteaaff7fa111c821ed6710dec7b6c49c5ecac6ad4 (diff)
[HICN-292] fix inflight interests counting
Change-Id: I1b02b9338e43de27cf90b4a11121c54a00ed428a Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/interfaces')
-rw-r--r--libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc b/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc
index 481b42a10..d1e89efdc 100644
--- a/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc
+++ b/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc
@@ -191,6 +191,11 @@ void RTCProducerSocket::onInterest(Interest::Ptr &&interest) {
return;
}
+ if(interestSeg > HICN_MAX_DATA_SEQ){
+ sendNack(*interest, isActive);
+ return;
+ }
+
uint32_t max_gap = (uint32_t)floor(
(double)((double)((double)lifetime * INTEREST_LIFETIME_REDUCTION_FACTOR /
1000.0) *