Support --cport and --parallel
When running multiple parallel streams, the specified port number is incremented for each successive stream. Signed-off-by: Kevin Constantine <kevin.constantine@gmail.com>
Этот коммит содержится в:
родитель
90f317355d
Коммит
517321138a
@ -33,8 +33,10 @@ iperf_create_streams(struct iperf_test *test)
|
||||
int i, s;
|
||||
struct iperf_stream *sp;
|
||||
|
||||
int orig_bind_port = test->bind_port;
|
||||
for (i = 0; i < test->num_streams; ++i) {
|
||||
|
||||
test->bind_port = orig_bind_port + i;
|
||||
if ((s = test->protocol->connect(test)) < 0)
|
||||
return -1;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user