aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2016-12-14 09:32:46 -0800
committerBruce A. Mah <bmah@es.net>2016-12-14 09:32:46 -0800
commit9c83a707eb0454994a7d42356981ff3ccd93c7a9 (patch)
tree14313a597cfa72b84e277d14908c50cc13a082e4 /src
parent01fb3e6dcfe91d5870c9b2187d1deff7aca95341 (diff)
downloadiperf3-9c83a707eb0454994a7d42356981ff3ccd93c7a9.tar.gz
Fail gracefully if --fq-rate or --no-fq-socket-pacing are specified on
platforms where they aren't supported. Requested by: @bltierney
Diffstat (limited to 'src')
-rwxr-xr-xsrc/iperf_api.c6
1 files 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':