Fix incorrect default bandwidth limit when using the API instead

of the command line.
This commit is contained in:
Jef Poskanzer 2013-07-12 19:56:49 -07:00
parent 861c06d862
commit d611f13e18
2 changed files with 3 additions and 3 deletions

View File

@ -1292,7 +1292,7 @@ iperf_defaults(struct iperf_test *testp)
testp->settings->unit_format = 'a';
testp->settings->socket_bufsize = 0; /* use autotuning */
testp->settings->blksize = DEFAULT_TCP_BLKSIZE;
testp->settings->rate = UDP_RATE;
testp->settings->rate = 0;
testp->settings->mss = 0;
testp->settings->bytes = 0;
memset(testp->cookie, 0, COOKIE_SIZE);
@ -1438,7 +1438,7 @@ iperf_reset_test(struct iperf_test *test)
test->num_streams = 1;
test->settings->socket_bufsize = 0;
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
test->settings->rate = UDP_RATE;
test->settings->rate = 0;
test->settings->mss = 0;
memset(test->cookie, 0, COOKIE_SIZE);
test->multisend = 10; /* arbitrary */

View File

@ -265,7 +265,7 @@ iperf_test_reset(struct iperf_test *test)
test->num_streams = 1;
test->settings->socket_bufsize = 0;
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
test->settings->rate = UDP_RATE;
test->settings->rate = 0;
test->settings->mss = 0;
memset(test->cookie, 0, COOKIE_SIZE);
}