diff options
author | Bruce A. Mah <bmah@es.net> | 2014-02-14 11:52:16 -0800 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2014-02-14 11:52:16 -0800 |
commit | 60bd98a538808e58eb18c259ebe3678bb19c3a2a (patch) | |
tree | cd2f32103a65e93e72b1f7c4a49512e605a39e32 /src/iperf_error.c | |
parent | d076653bd4a92a1587c8214a6e0603e25eda2307 (diff) | |
download | iperf3-60bd98a538808e58eb18c259ebe3678bb19c3a2a.tar.gz |
Add SCTP support with the --sctp flag (Linux and FreeBSD only).
Note this option only has a long option flag; we're running out of
letters for short options.
Based heavily on a patch submitted in Issue 131 (SCTP support for
iperf); I added support for FreeBSD and did some other packaging and
documentation improvements.
We probably shouldn't tie SCTP support to looking specifically for
Linux or FreeBSD; we probably leave support enabled all the time if
possible, possibly with some configure-time checks.
Diffstat (limited to 'src/iperf_error.c')
-rw-r--r-- | src/iperf_error.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iperf_error.c b/src/iperf_error.c index cbd0565..d4cb444 100644 --- a/src/iperf_error.c +++ b/src/iperf_error.c @@ -303,6 +303,10 @@ iperf_strerror(int i_errno) snprintf(errstr, len, "Unable to set/reset IPV6_V6ONLY"); perr = 1; break; + case IESETSCTPDISABLEFRAG: + snprintf(errstr, len, "unable to set SCTP_DISABLE_FRAG"); + perr = 1; + break; } if (herr || perr) |