diff options
Diffstat (limited to 'libtransport/src/hicn/transport/interfaces')
-rw-r--r-- | libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc b/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc index 6a45019a4..481b42a10 100644 --- a/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc +++ b/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc @@ -29,6 +29,8 @@ // is considered inactive #define MILLI_IN_A_SEC 1000 // ms in a second +#define HICN_MAX_DATA_SEQ 0xefffffff + // NACK HEADER // +-----------------------------------------+ // | 4 bytes: current segment in production | @@ -157,7 +159,7 @@ void RTCProducerSocket::produce(std::unique_ptr<utils::MemBuf> &&buffer) { portal_->sendContentObject(content_object); - currentSeg_++; + currentSeg_ = (currentSeg_ + 1) % HICN_MAX_DATA_SEQ; } void RTCProducerSocket::onInterest(Interest::Ptr &&interest) { |