Description: spelling errors in binary (lintian)
 fix spelling errors / typos
Author: Roberto Lumbreras

Index: iperf-2.2.1+dfsg/src/Client.cpp
===================================================================
--- iperf-2.2.1+dfsg.orig/src/Client.cpp	2024-12-27 14:14:44.027943841 +0100
+++ iperf-2.2.1+dfsg/src/Client.cpp	2024-12-27 14:14:44.027943841 +0100
@@ -1112,7 +1112,7 @@
             reportstruct->sentTime = reportstruct->packetTime;
             reportstruct->packetLen = myWriten(mySocket, mSettings->mBuf, writelen, &reportstruct->writecnt);
             if (reportstruct->packetLen <= 0) {
-                WARN_errno((reportstruct->packetLen < 0), "event writen()");
+                WARN_errno((reportstruct->packetLen < 0), "event written()");
                 if (reportstruct->packetLen == 0) {
                     peerclose = true;
                 }
@@ -1219,7 +1219,7 @@
             }
             write_offset += n;
             if ((write_offset < writelen) && InProgress()) {
-                WARN_errno(1, "tcp bounceback writen incomplete");
+                WARN_errno(1, "tcp bounceback written incomplete");
                 PostNullEvent(false,false);
                 goto RETRY_WRITE;
             }
Index: iperf-2.2.1+dfsg/src/socket_io.c
===================================================================
--- iperf-2.2.1+dfsg.orig/src/socket_io.c	2024-12-27 14:14:44.027943841 +0100
+++ iperf-2.2.1+dfsg/src/socket_io.c	2024-12-27 14:14:44.027943841 +0100
@@ -211,7 +211,7 @@
 	    // check for a fatal error vs an error that should retry
 	    if ((errno != EINTR) && (errno != EAGAIN) && (errno != EWOULDBLOCK)) {
 		nwritten = inLen - nleft;
-		fprintf(stdout, "FAIL: writen errno = %d (bytes=%d)\n", errno, nwritten);
+		fprintf(stdout, "FAIL: written errno = %d (bytes=%d)\n", errno, nwritten);
 //		sInterupted = 1;
 		goto DONE;
 	    }
Index: iperf-2.2.1+dfsg/man/iperf.1
===================================================================
--- iperf-2.2.1+dfsg.orig/man/iperf.1	2024-12-27 14:14:44.027943841 +0100
+++ iperf-2.2.1+dfsg/man/iperf.1	2024-12-27 14:14:44.027943841 +0100
@@ -156,7 +156,7 @@
 Set the socket option of TCP_WINDOW_CLAMP, units is bytes.
 .TP
 .BR "    \-\-test\-exchange\-timeout " \fI<value>\fR
-Set the maximum wait time for a test excahnge in seconds. Defaults to 60 seconds if not set. A value of zero will disable the timeout.
+Set the maximum wait time for a test exchange in seconds. Defaults to 60 seconds if not set. A value of zero will disable the timeout.
 .TP
 .BR \-t ", " \-\-time " \fIn\fR"
 time in seconds to listen for new traffic connections and/or receive traffic (defaults to infinite)
@@ -187,13 +187,13 @@
 Enable IPv6 reception by setting the domain and socket to AF_INET6 (Can receive on both IPv4 and IPv6)
 .TP
 .BR "    \-\-tcp\-cca "
-Set the congestion control algorithm to be used for TCP connections \- will overide any client side settings (same as \-\-tcp\-congestion)
+Set the congestion control algorithm to be used for TCP connections \- will override any client side settings (same as \-\-tcp\-congestion)
 .TP
 .BR "    \-\-working\-load "
 Enable support for TCP working loads on UDP traffic streams
 .TP
 .BR "    \-\-working\-load\-cca "
-Set the congestion control algorithm to be used for TCP working loads \- will overide any client side settings
+Set the congestion control algorithm to be used for TCP working loads \- will override any client side settings
 .SH "CLIENT SPECIFIC OPTIONS"
 .TP
 .BR \-b ", " \-\-bandwidth " \fIn\fR[kmgKMG][,\fIn\fR[kmgKMG]] | \fIn\fR\fR[kmgKMG]pps"
@@ -1020,7 +1020,7 @@
 .P
 .B Unsynchronized clock detections with \-\-bounceback and \-\-trip\-times (as of March 19, 2023):
 Iperf 2 can detect when the clocks have synchronization errors larger than the bounceback RTT. This is done via the client's send timestamp (clock A),
-the server's recieve timestamp (clock B) and the client's final receive timestamp (clock A.) The check, done on each bounceback, is
+the server's receive timestamp (clock B) and the client's final receive timestamp (clock A.) The check, done on each bounceback, is
 write(A) < read(B) < read(A). This is supported in bounceback tests  with
 a slight adjustment: clock write(A) < clock read(B) < clock read(A) \- (clock write(B) \- clock read(B)). All the
 timestamps are sampled on the initial write or read (not the completion of.)
Index: iperf-2.2.1+dfsg/src/Server.cpp
===================================================================
--- iperf-2.2.1+dfsg.orig/src/Server.cpp	2024-12-27 14:14:44.027943841 +0100
+++ iperf-2.2.1+dfsg/src/Server.cpp	2024-12-27 14:18:06.687179749 +0100
@@ -406,7 +406,7 @@
         if (n < 0) {
             if (FATALTCPWRITERR(errno)) {
                 reportstruct->err_readwrite=WriteErrFatal;
-                FAIL_errno(1, "tcp bounceback writen", mSettings);
+                FAIL_errno(1, "tcp bounceback written", mSettings);
                 peerclose = true;
                 break;
             } else {
@@ -416,7 +416,7 @@
         }
         write_offset += n;
         if (write_offset < writelen) {
-            WARN_errno(1, "tcp bounceback writen incomplete");
+            WARN_errno(1, "tcp bounceback written incomplete");
             PostNullEvent();
             continue;
         }
@@ -792,7 +792,7 @@
 		}
             }
         } else if (ctrunc_warn_enable && mSettings->mTransferIDStr) {
-            fprintf(stderr, "%sWARN: recvmsg MSG_CTRUNC occured\n", mSettings->mTransferIDStr);
+            fprintf(stderr, "%sWARN: recvmsg MSG_CTRUNC occurred\n", mSettings->mTransferIDStr);
             ctrunc_warn_enable = false;
         }
     }
