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

Function set_protocol

src/iperf_api.c:897–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897int
898set_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 **************************/

Callers 4

iperf_parse_argumentsFunction · 0.85
get_parametersFunction · 0.85
iperf_defaultsFunction · 0.85
iperf_reset_testFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…