aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2020-07-17 18:24:44 +0200
committermichele papalini <micpapal@cisco.com>2020-07-17 18:24:44 +0200
commit5792a7dd7b4418758add751a89f80018f5aab53c (patch)
tree6eb010fe0b1503bd7b988f67ac8e9afd8c47a4e0
parent90cb79908a3e4f6936ade68d404bb3088f6bdedd (diff)
[HICN-633] compute the correct data packet size in hiperf
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: If3492136cfc41da94d4d80538694eae4428c6f8c
-rw-r--r--utils/src/hiperf.cc5
1 files changed, 4 insertions, 1 deletions
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();