| 672 | } |
| 673 | |
| 674 | void |
| 675 | iperf_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 | |
| 692 | void |
| 693 | iperf_set_test_json_output(struct iperf_test *ipt, int json_output) |
no test coverage detected
searching dependent graphs…