When using the -B option, iperf forces the use of 5001 as the source port. It should allow the OS to choose ephemeral ports for its source port (maybe add another option to specify).
Lorsque vous utilisez l'option -B, iperf force l'utilisation de 5001 comme le port source. Il devrait permettre à l'OS de choisir ports éphémères pour son port source (peut-être ajouter une autre option à préciser).
diff -ru iperf-2.0.5/src/SocketAddr.c iperf-2.0.5-sourceport/src/SocketAddr.c
--- iperf-2.0.5/src/SocketAddr.c 2007-08-29 16:57:27.000000000 -0500
+++ iperf-2.0.5-sourceport/src/SocketAddr.c 2014-11-21 00:16:13.412456381 -0600
@@ -117,7 +117,7 @@
}
inSettings->size_local = sizeof( struct sockaddr_in );
#endif