From b788ec040548f8d3cd7a3af40f906d85dd76e426 Mon Sep 17 00:00:00 2001 From: David Bar-On Date: Sat, 25 Sep 2021 21:28:11 +0300 Subject: [PATCH] Per review comment, set server's zerocopy option to j_p->valueint instead of 1 --- src/iperf_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iperf_api.c b/src/iperf_api.c index 4182441..4834daa 100644 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -2163,7 +2163,7 @@ get_parameters(struct iperf_test *test) if ((j_p = cJSON_GetObjectItem(j, "repeating_payload")) != NULL) test->repeating_payload = 1; if ((j_p = cJSON_GetObjectItem(j, "zerocopy")) != NULL) - test->zerocopy = 1; + test->zerocopy = j_p->valueint; #if defined(HAVE_DONT_FRAGMENT) if ((j_p = cJSON_GetObjectItem(j, "dont_fragment")) != NULL) test->settings->dont_fragment = j_p->valueint;