From 9c83a707eb0454994a7d42356981ff3ccd93c7a9 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Wed, 14 Dec 2016 09:32:46 -0800 Subject: [PATCH] Fail gracefully if --fq-rate or --no-fq-socket-pacing are specified on platforms where they aren't supported. Requested by: @bltierney --- src/iperf_api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/iperf_api.c b/src/iperf_api.c index e797388..f156628 100755 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -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':