Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37547375
en ru br
Репозитории ALT
S:2.0.12-alt1
5.1: 2.0.4-alt1
4.1: 2.0.2-alt2
4.0: 2.0.2-alt2
3.0: 1.7.0-alt1.1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: iperf

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 011-ipv6_mcast_check.patch
Скачать


Description: Fix improper check for IPv6 family when sending multicast
 This patch fixes the proper behavior of -T (hop-limit setting) when
 sending IPv6 multicast packets. Due to this bug, it was always fixed to 1.
 .
 SetSocketOptions() is called before socket connection, thus sa_family is
 still set to 0. This is causing the if-branch in the multicast check
 to always assume a non-IPv6 socket.
 Checking the remote-peer family works reliably, instead.
Author: Luca Bruno <lucab@debian.org>
Last-Update: 2012-05-24
--- iperf-2.0.5.orig/src/PerfSocket.cpp
+++ iperf-2.0.5/src/PerfSocket.cpp
@@ -109,7 +109,7 @@ void SetSocketOptions( thread_Settings *
     if ( isMulticast( inSettings ) && ( inSettings->mTTL > 0 ) ) {
 	int val = inSettings->mTTL;
 #ifdef HAVE_MULTICAST
-	if ( !SockAddr_isIPv6( &inSettings->local ) ) {
+	if ( !SockAddr_isIPv6( &inSettings->peer ) ) {
 	    int rc = setsockopt( inSettings->mSock, IPPROTO_IP, IP_MULTICAST_TTL,
 		    (const void*) &val, (Socklen_t) sizeof(val));
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin