Fixed little glitch in argument handling order: "-l nnn -u" was

setting the block size back to the UDP default, while "-u -l nnn"
worked.  Now both orders work.
This commit is contained in:
Jef Poskanzer 2013-01-28 11:48:19 -08:00
parent 6177a7f1f1
commit 45080fc6b7

View File

@ -411,7 +411,8 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
*/
}
set_protocol(test, Pudp);
test->settings->blksize = DEFAULT_UDP_BLKSIZE;
if (test->settings->blksize == DEFAULT_TCP_BLKSIZE)
test->settings->blksize = DEFAULT_UDP_BLKSIZE;
break;
case 'P':
if (test->role == 's') {