From 5792a7dd7b4418758add751a89f80018f5aab53c Mon Sep 17 00:00:00 2001 From: michele papalini Date: Fri, 17 Jul 2020 18:24:44 +0200 Subject: [HICN-633] compute the correct data packet size in hiperf Signed-off-by: michele papalini Change-Id: If3492136cfc41da94d4d80538694eae4428c6f8c --- utils/src/hiperf.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc index 48626f86b..967241250 100644 --- a/utils/src/hiperf.cc +++ b/utils/src/hiperf.cc @@ -899,10 +899,13 @@ class HIperfServer { } } + uint32_t rtc_header_size = 0; + if(configuration_.rtc_) + rtc_header_size = 8; producer_socket_->setSocketOption( GeneralTransportOptions::DATA_PACKET_SIZE, (uint32_t)( - configuration_.payload_size_ + + configuration_.payload_size_ + rtc_header_size + (configuration_.name.getAddressFamily() == AF_INET ? 40 : 60))); producer_socket_->registerPrefix(configuration_.name); producer_socket_->connect(); -- cgit 1.2.3-korg