aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-10-04 11:50:50 +0200
committermichele papalini <micpapal@cisco.com>2019-10-04 11:50:50 +0200
commit821979b92ea43e82782c26c7372f65955e8b4c9d (patch)
tree7c35debf0972862b88622ef4b9f3d8d13d32daf5 /utils
parentceba475ec9badd75516863b7bec46d5d10f0b957 (diff)
[HICN-293] remove stats in hiperf in RTC mode
Change-Id: I6e577a4122042248900b4f48fd9f4fd45825aae9 Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/src/hiperf.cc13
1 files changed, 11 insertions, 2 deletions
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;