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;
|
test->settings->fqrate = 0;
|
||||||
client_flag = 1;
|
client_flag = 1;
|
||||||
#else /* HAVE_SO_MAX_PACING_RATE */
|
#else /* HAVE_SO_MAX_PACING_RATE */
|
||||||
i_errno = IEUNIMP;
|
printf("Warning: --no-fq-socket-pacing not supported on this platform, ignoring\n");
|
||||||
return -1;
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case OPT_FQ_RATE:
|
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);
|
test->settings->fqrate = unit_atof_rate(optarg);
|
||||||
client_flag = 1;
|
client_flag = 1;
|
||||||
#else /* HAVE_SO_MAX_PACING_RATE */
|
#else /* HAVE_SO_MAX_PACING_RATE */
|
||||||
i_errno = IEUNIMP;
|
printf("Warning: --fq-rate not supported on this platform, ignoring\n");
|
||||||
return -1;
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user