MCPcopy Create free account
hub / github.com/esnet/iperf / iperf_set_test_reverse

Function iperf_set_test_reverse

src/iperf_api.c:674–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674void
675iperf_set_test_reverse(struct iperf_test *ipt, int reverse)
676{
677 ipt->reverse = reverse;
678 if (!ipt->reverse) {
679 if (ipt->role == 'c')
680 ipt->mode = SENDER;
681 else if (ipt->role == 's')
682 ipt->mode = RECEIVER;
683 } else {
684 if (ipt->role == 'c')
685 ipt->mode = RECEIVER;
686 else if (ipt->role == 's')
687 ipt->mode = SENDER;
688 }
689 check_sender_has_retransmits(ipt);
690}
691
692void
693iperf_set_test_json_output(struct iperf_test *ipt, int json_output)

Callers 3

iperf_parse_argumentsFunction · 0.85
get_parametersFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…