Fail gracefully if --fq-rate or --no-fq-socket-pacing are specified on
platforms where they aren't supported. Requested by: @bltierney
Этот коммит содержится в:
родитель
01fb3e6dcf
Коммит
9c83a707eb
@ -958,8 +958,7 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
|
||||
test->settings->fqrate = 0;
|
||||
client_flag = 1;
|
||||
#else /* HAVE_SO_MAX_PACING_RATE */
|
||||
i_errno = IEUNIMP;
|
||||
return -1;
|
||||
printf("Warning: --no-fq-socket-pacing not supported on this platform, ignoring\n");
|
||||
#endif
|
||||
break;
|
||||
case OPT_FQ_RATE:
|
||||
@ -967,8 +966,7 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
|
||||
test->settings->fqrate = unit_atof_rate(optarg);
|
||||
client_flag = 1;
|
||||
#else /* HAVE_SO_MAX_PACING_RATE */
|
||||
i_errno = IEUNIMP;
|
||||
return -1;
|
||||
printf("Warning: --fq-rate not supported on this platform, ignoring\n");
|
||||
#endif
|
||||
break;
|
||||
case 'h':
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user