Lines Matching full:ips

16 static void gen_test_ips(union tcp_addr *ips, size_t ips_nr, bool use_rand)  in gen_test_ips()  argument
26 ips[i] = gen_tcp_addr(net, 2 * i + 1); in gen_test_ips()
32 ips[i] = gen_tcp_addr(net, r); in gen_test_ips()
35 if (!memcmp(&ips[i], &ips[j], sizeof(union tcp_addr))) { in gen_test_ips()
43 static void test_add_routes(union tcp_addr *ips, size_t ips_nr) in test_add_routes() argument
48 union tcp_addr *p = (union tcp_addr *)&ips[i]; in test_add_routes()
57 static void server_apply_keys(int lsk, union tcp_addr *ips, size_t ips_nr) in server_apply_keys() argument
62 union tcp_addr *p = (union tcp_addr *)&ips[i]; in server_apply_keys()
146 union tcp_addr *ips, size_t ips_nr, in bench_delete() argument
159 p = (union tcp_addr *)&ips[0]; in bench_delete()
170 * on (i) iteration removing ips[i] element. When it gets in bench_delete()
172 * on (i + 1) iteration go to ips[i + 1] element. in bench_delete()
175 p = (union tcp_addr *)&ips[rand() % ips_nr]; in bench_delete()
177 p = (union tcp_addr *)&ips[i % ips_nr]; in bench_delete()
182 static void bench_connect_srv(int lsk, union tcp_addr *ips, size_t ips_nr) in bench_connect_srv() argument
293 union tcp_addr *ips, size_t ips_nr, bool rand_order) in bench_connect_client() argument
304 p = (union tcp_addr *)&ips[0]; in bench_connect_client()
325 * on (i) iteration removing ips[i] element. When it gets in bench_connect_client()
327 * on (i + 1) iteration go to ips[i + 1] element. in bench_connect_client()
330 p = (union tcp_addr *)&ips[rand() % ips_nr]; in bench_connect_client()
332 p = (union tcp_addr *)&ips[i % ips_nr]; in bench_connect_client()