Fix incorrect default bandwidth limit when using the API instead
of the command line.
Этот коммит содержится в:
родитель
861c06d862
Коммит
d611f13e18
@ -1292,7 +1292,7 @@ iperf_defaults(struct iperf_test *testp)
|
|||||||
testp->settings->unit_format = 'a';
|
testp->settings->unit_format = 'a';
|
||||||
testp->settings->socket_bufsize = 0; /* use autotuning */
|
testp->settings->socket_bufsize = 0; /* use autotuning */
|
||||||
testp->settings->blksize = DEFAULT_TCP_BLKSIZE;
|
testp->settings->blksize = DEFAULT_TCP_BLKSIZE;
|
||||||
testp->settings->rate = UDP_RATE;
|
testp->settings->rate = 0;
|
||||||
testp->settings->mss = 0;
|
testp->settings->mss = 0;
|
||||||
testp->settings->bytes = 0;
|
testp->settings->bytes = 0;
|
||||||
memset(testp->cookie, 0, COOKIE_SIZE);
|
memset(testp->cookie, 0, COOKIE_SIZE);
|
||||||
@ -1438,7 +1438,7 @@ iperf_reset_test(struct iperf_test *test)
|
|||||||
test->num_streams = 1;
|
test->num_streams = 1;
|
||||||
test->settings->socket_bufsize = 0;
|
test->settings->socket_bufsize = 0;
|
||||||
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
|
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
|
||||||
test->settings->rate = UDP_RATE;
|
test->settings->rate = 0;
|
||||||
test->settings->mss = 0;
|
test->settings->mss = 0;
|
||||||
memset(test->cookie, 0, COOKIE_SIZE);
|
memset(test->cookie, 0, COOKIE_SIZE);
|
||||||
test->multisend = 10; /* arbitrary */
|
test->multisend = 10; /* arbitrary */
|
||||||
|
@ -265,7 +265,7 @@ iperf_test_reset(struct iperf_test *test)
|
|||||||
test->num_streams = 1;
|
test->num_streams = 1;
|
||||||
test->settings->socket_bufsize = 0;
|
test->settings->socket_bufsize = 0;
|
||||||
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
|
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
|
||||||
test->settings->rate = UDP_RATE;
|
test->settings->rate = 0;
|
||||||
test->settings->mss = 0;
|
test->settings->mss = 0;
|
||||||
memset(test->cookie, 0, COOKIE_SIZE);
|
memset(test->cookie, 0, COOKIE_SIZE);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user