diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/src/hiperf.cc | 5 |
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(); |