fix setting multicast TTL; from norby@
This commit is contained in:
parent
d71c101364
commit
34f5e6e672
@ -1,8 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2005/05/08 21:16:15 jakob Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2006/03/23 19:35:08 jakob Exp $
|
||||
|
||||
COMMENT= "tool for measuring maximum TCP and UDP bandwidth"
|
||||
|
||||
DISTNAME= iperf-2.0.2
|
||||
VERSION= 2.0.2
|
||||
DISTNAME= iperf-${VERSION}
|
||||
PKGNAME= iperf-${VERSION}p0
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://dast.nlanr.net/Projects/Iperf/
|
||||
|
12
net/iperf/patches/patch-src_PerfSocket_cpp
Normal file
12
net/iperf/patches/patch-src_PerfSocket_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_PerfSocket_cpp,v 1.1 2006/03/23 19:35:08 jakob Exp $
|
||||
--- src/PerfSocket.cpp.orig Mon May 2 22:09:27 2005
|
||||
+++ src/PerfSocket.cpp Thu Mar 23 20:29:38 2006
|
||||
@@ -92,7 +92,7 @@ void SetSocketOptions( thread_Settings *
|
||||
|
||||
// check if we're sending multicast, and set TTL
|
||||
if ( isMulticast( inSettings ) && ( inSettings->mTTL > 0 ) ) {
|
||||
- int val = inSettings->mTTL;
|
||||
+ u_int8_t val = inSettings->mTTL;
|
||||
#ifdef HAVE_MULTICAST
|
||||
if ( !SockAddr_isIPv6( &inSettings->local ) ) {
|
||||
int rc = setsockopt( inSettings->mSock, IPPROTO_IP, IP_MULTICAST_TTL,
|
Loading…
Reference in New Issue
Block a user