1
1

Per review comment, set server's zerocopy option to j_p->valueint instead of 1

Этот коммит содержится в:
David Bar-On 2021-09-25 21:28:11 +03:00
родитель 71525517ff
Коммит b788ec0405

Просмотреть файл

@ -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;