From 821979b92ea43e82782c26c7372f65955e8b4c9d Mon Sep 17 00:00:00 2001 From: michele papalini Date: Fri, 4 Oct 2019 11:50:50 +0200 Subject: [HICN-293] remove stats in hiperf in RTC mode Change-Id: I6e577a4122042248900b4f48fd9f4fd45825aae9 Signed-off-by: michele papalini --- utils/src/hiperf.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc index b62173be8..3e39990a4 100644 --- a/utils/src/hiperf.cc +++ b/utils/src/hiperf.cc @@ -45,6 +45,9 @@ namespace interface { #endif #define ERROR_SETUP -5 +#define MIN_PROBE_SEQ 0xefffffff + + using CryptoSuite = utils::CryptoSuite; using Identity = utils::Identity; @@ -210,9 +213,11 @@ class HIperfClient { << ". Next expected packet " << productionSeg + 1 << std::endl; expected_seg_ = productionSeg; - } else if (receivedSeg > productionSeg) { + } else if (receivedSeg > productionSeg && receivedSeg < MIN_PROBE_SEQ) { std::cout << "[WINDOW TO LARGE] received NACK for " << receivedSeg - << ". Next expected packet " << productionSeg << std::endl; + << ". Next expected packet " << productionSeg << std::endl; + } else if (receivedSeg >= MIN_PROBE_SEQ){ + std::cout << "[PROBE] probe number = " << receivedSeg << std::endl; } return; } @@ -252,6 +257,10 @@ class HIperfClient { void handleTimerExpiration(ConsumerSocket &c, const protocol::TransportStatistics &stats) { + + if (configuration_.rtc_) + return; + const char separator = ' '; const int width = 20; -- cgit 1.2.3-korg