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

Function iperf_init_test

src/iperf_api.c:2273–2297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2271}
2272
2273int
2274iperf_init_test(struct iperf_test *test)
2275{
2276 struct iperf_time now;
2277 struct iperf_stream *sp;
2278
2279 if (test->protocol->init) {
2280 if (test->protocol->init(test) < 0)
2281 return -1;
2282 }
2283
2284 /* Init each stream. */
2285 if (iperf_time_now(&now) < 0) {
2286 i_errno = IEINITTEST;
2287 return -1;
2288 }
2289 SLIST_FOREACH(sp, &test->streams, streams) {
2290 sp->result->start_time = sp->result->start_time_fixed = now;
2291 }
2292
2293 if (test->on_test_start)
2294 test->on_test_start(test);
2295
2296 return 0;
2297}
2298
2299
2300int

Callers 2

iperf_run_serverFunction · 0.85

Calls 1

iperf_time_nowFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…