| 895 | } |
| 896 | |
| 897 | int |
| 898 | set_protocol(struct iperf_test *test, int prot_id) |
| 899 | { |
| 900 | struct protocol *prot = NULL; |
| 901 | |
| 902 | SLIST_FOREACH(prot, &test->protocols, protocols) { |
| 903 | if (prot->id == prot_id) { |
| 904 | test->protocol = prot; |
| 905 | check_sender_has_retransmits(test); |
| 906 | return 0; |
| 907 | } |
| 908 | } |
| 909 | |
| 910 | i_errno = IEPROTOCOL; |
| 911 | return -1; |
| 912 | } |
| 913 | |
| 914 | |
| 915 | /************************** Iperf callback functions **************************/ |
no test coverage detected
searching dependent graphs…