Skip to content

Commit 4ebe02a

Browse files
committed
changes made for review comments
1 parent 091986a commit 4ebe02a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/iperf_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,7 @@ iperf_exchange_parameters(struct iperf_test *test)
22572257
if (iperf_set_send_state(test, SERVER_ERROR) != 0)
22582258
return -1;
22592259

2260-
i_errno = IEMAXSERVERDURATIONEXCEEDED;
2260+
i_errno = IEMAXSERVERTESTDURATIONEXCEEDED;
22612261
err = htonl(i_errno);
22622262
if (Nwrite(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) {
22632263
i_errno = IECTRLWRITE;

src/iperf_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ enum {
437437
IEUDPFILETRANSFER = 34, // Cannot transfer file using UDP
438438
IESERVERAUTHUSERS = 35, // Cannot access authorized users file
439439
IECNTLKA = 36, // Control connection Keepalive period should be larger than the full retry period (interval * count)
440-
IEMAXSERVERDURATIONEXCEEDED = 37, // Client's duration exceeds server's maximum duration
440+
IEMAXSERVERTESTDURATIONEXCEEDED = 37, // Client's duration exceeds server's maximum duration
441441
/* Test errors */
442442
IENEWTEST = 100, // Unable to create a new test (check perror)
443443
IEINITTEST = 101, // Test initialization failed (check perror)

src/iperf_client_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ iperf_handle_message_client(struct iperf_test *test)
334334
switch (test->state) {
335335
case PARAM_EXCHANGE:
336336
if (iperf_exchange_parameters(test) < 0)
337-
return -1;
337+
return -1;
338338
if (test->on_connect)
339339
test->on_connect(test);
340340
break;

src/iperf_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ iperf_strerror(int int_errno)
548548
snprintf(errstr, len, "unable to set/get socket keepalive TCP number of retries (TCP_KEEPCNT) option");
549549
perr = 1;
550550
break;
551-
case IEMAXSERVERDURATIONEXCEEDED:
551+
case IEMAXSERVERTESTDURATIONEXCEEDED:
552552
snprintf(errstr, len, "client's max duration exceeds the server's maximum permitted duration");
553553
break;
554554
default:

0 commit comments

Comments
 (0)