Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 28) sorted by relevance

12

/iperf/src/
H A Diperf_server_api.c73 …if((test->listener = netannounce(test->settings->domain, Ptcp, test->bind_address, test->bind_dev,… in iperf_server_listen()
104 if (test->listener > test->max_fd) test->max_fd = test->listener; in iperf_server_listen()
147 FD_SET(test->ctrl_sck, &test->read_set); in iperf_accept()
148 if (test->ctrl_sck > test->max_fd) test->max_fd = test->ctrl_sck; in iperf_accept()
158 test->on_connect(test); in iperf_accept()
206 test->stats_callback(test); in iperf_handle_message_server()
232 test->reporter_callback(test); in iperf_handle_message_server()
280 test->stats_callback(test); in server_stats_timer_proc()
291 test->reporter_callback(test); in server_reporter_timer_proc()
308 test->timer = test->stats_timer = test->reporter_timer = NULL; in create_server_timers()
[all …]
H A Diperf_client_api.c78 s = test->protocol->connect(test); in iperf_create_streams()
122 if (s > test->max_fd) test->max_fd = s; in iperf_create_streams()
153 test->stats_callback(test); in client_stats_timer_proc()
164 test->reporter_callback(test); in client_reporter_timer_proc()
184 test->timer = test->stats_timer = test->reporter_timer = NULL; in create_client_timers()
286 test->on_connect(test); in iperf_handle_message_client()
333 test->reporter_callback(test); in iperf_handle_message_client()
381test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, test->bind_dev, 0, test in iperf_connect()
409 if (test->ctrl_sck > test->max_fd) test->max_fd = test->ctrl_sck; in iperf_connect()
494 test->reporter_callback(test); in iperf_client_end()
[all …]
H A Diperf_api.c846 …perf_printf(test, test_start_bytes, test->protocol->name, test->num_streams, test->settings->blksi… in iperf_on_test_start()
848 …erf_printf(test, test_start_blocks, test->protocol->name, test->num_streams, test->settings->blksi… in iperf_on_test_start()
850 …iperf_printf(test, test_start_time, test->protocol->name, test->num_streams, test->settings->blksi… in iperf_on_test_start()
1738 if (test->json_output && test->debug) { in iperf_parse_arguments()
1936 test->on_test_start(test); in iperf_init_test()
2064 test->max_fd = (s > test->max_fd) ? s : test->max_fd; in iperf_exchange_parameters()
4206 sp->test = test; in iperf_new_stream()
4514 test->stats_callback(test); in iperf_got_sigend()
4517 test->on_test_finish(test); in iperf_got_sigend()
4518 test->reporter_callback(test); in iperf_got_sigend()
[all …]
H A Diperf_udp.c200 if (sp->test->debug) in iperf_udp_recv()
312 if (test->debug) { in iperf_udp_buffercheck()
334 if (test->debug) { in iperf_udp_buffercheck()
424 if (test->debug) { in iperf_udp_accept()
436 if (test->debug) { in iperf_udp_accept()
445test->prot_listener = netannounce(test->settings->domain, Pudp, test->bind_address, test->bind_dev… in iperf_udp_accept()
451 FD_SET(test->prot_listener, &test->read_set); in iperf_udp_accept()
452 test->max_fd = (test->max_fd < test->prot_listener) ? test->prot_listener : test->max_fd; in iperf_udp_accept()
477 …if ((s = netannounce(test->settings->domain, Pudp, test->bind_address, test->bind_dev, test->serve… in iperf_udp_listen()
506 …if ((s = netdial(test->settings->domain, Pudp, test->bind_address, test->bind_dev, test->bind_port… in iperf_udp_connect()
[all …]
H A Diperf_tcp.c71 if (sp->test->debug) in iperf_tcp_recv()
158 s = test->listener; in iperf_tcp_listen()
169 if (test->no_delay || test->settings->mss || test->settings->socket_bufsize) { in iperf_tcp_listen()
184 if (test->settings->domain == AF_UNSPEC && !test->bind_address) { in iperf_tcp_listen()
249 if (test->debug) { in iperf_tcp_listen()
261 if (test->debug) { in iperf_tcp_listen()
327 if (test->debug) { in iperf_tcp_listen()
344 if (test->debug) { in iperf_tcp_listen()
378 …s = create_socket(test->settings->domain, SOCK_STREAM, test->bind_address, test->bind_dev, test->b… in iperf_tcp_connect()
447 if (test->debug) { in iperf_tcp_connect()
[all …]
H A Dmain.c60 struct iperf_test *test; in main() local
96 test = iperf_new_test(); in main()
97 if (!test) in main()
108 if (run(test) < 0) in main()
111 iperf_free_test(test); in main()
127 run(struct iperf_test *test) in run() argument
132 iperf_got_sigend(test); in run()
137 switch (test->role) { in run()
139 if (test->daemon) { in run()
153 rc = iperf_run_server(test); in run()
[all …]
H A Diperf_sctp.c73 if (sp->test->debug) in iperf_sctp_recv()
167 close(test->listener); in iperf_sctp_listen()
176 if (test->settings->domain == AF_UNSPEC && !test->bind_address) { in iperf_sctp_listen()
214 if (test->bind_dev) { in iperf_sctp_listen()
282 test->listener = s; in iperf_sctp_listen()
304 if (test->bind_address) { in iperf_sctp_connect()
319 if (test->bind_address) in iperf_sctp_connect()
353 if (test->bind_dev) { in iperf_sctp_connect()
373 if (test->bind_address) { in iperf_sctp_connect()
442 if ((test->settings->mss >= 512 && test->settings->mss <= 131072)) { in iperf_sctp_connect()
[all …]
H A Dt_api.c46 port = iperf_get_test_bind_port(test); in test_iperf_set_test_bind_port()
47 iperf_set_test_bind_port(test, 5202); in test_iperf_set_test_bind_port()
48 port = iperf_get_test_bind_port(test); in test_iperf_set_test_bind_port()
55 int mss = iperf_get_test_mss(test); in test_iperf_set_mss()
56 iperf_set_test_mss(test, 535); in test_iperf_set_mss()
57 mss = iperf_get_test_mss(test); in test_iperf_set_mss()
66 struct iperf_test *test; in main() local
72 test = iperf_new_test(); in main()
73 assert(test != NULL); in main()
75 iperf_defaults(test); in main()
[all …]
H A Diperf_error.c51 if (test != NULL && test->timestamps) { in iperf_err()
60 if (test != NULL && test->json_output && test->json_top != NULL) in iperf_err()
63 if (test && test->outfile && test->outfile != stdout) { in iperf_err()
65 fprintf(test->outfile, "%s", ct); in iperf_err()
90 if (test != NULL && test->timestamps) { in iperf_errexit()
99 if (test != NULL && test->json_output && test->json_top != NULL) { in iperf_errexit()
101 iperf_json_finish(test); in iperf_errexit()
103 if (test && test->outfile && test->outfile != stdout) { in iperf_errexit()
105 fprintf(test->outfile, "%s", ct); in iperf_errexit()
116 if (test) in iperf_errexit()
[all …]
H A Diperf_api.h214 int iperf_exchange_parameters(struct iperf_test * test);
233 void iperf_stats_callback(struct iperf_test * test);
239 void iperf_reporter_callback(struct iperf_test * test);
270 void iperf_add_stream(struct iperf_test * test, struct iperf_stream * stream);
293 void print_tcpinfo(struct iperf_test *test);
296 int iperf_set_send_state(struct iperf_test *test, signed char state);
301 void iperf_got_sigend(struct iperf_test *test) __attribute__ ((noreturn));
311 void iperf_reset_stats(struct iperf_test * test);
348 int iperf_printf(struct iperf_test *test, const char *format, ...) __attribute__ ((format(printf,2,…
349 int iflush(struct iperf_test *test);
[all …]
H A Diperf_sctp.h61 int iperf_sctp_init(struct iperf_test *test);
66 int iperf_sctp_bindx(struct iperf_test *test, int s, int is_server);
H A Dtcp_info.c102 iperf_err(sp->test, "getsockopt - %s", strerror(errno)); in save_tcpinfo()
104 if (sp->test->debug) { in save_tcpinfo()
/iperf/examples/
H A Dmic.c19 struct iperf_test *test; in main() local
34 test = iperf_new_test(); in main()
35 if ( test == NULL ) { in main()
39 iperf_defaults( test ); in main()
40 iperf_set_verbose( test, 1 ); in main()
42 iperf_set_test_role( test, 'c' ); in main()
44 iperf_set_test_server_port( test, port ); in main()
46 iperf_set_test_omit( test, 3 ); in main()
47 iperf_set_test_duration( test, 5 ); in main()
52 if ( iperf_run_client( test ) < 0 ) { in main()
[all …]
H A Dmis.c18 struct iperf_test *test; in main() local
33 test = iperf_new_test(); in main()
34 if ( test == NULL ) { in main()
38 iperf_defaults( test ); in main()
39 iperf_set_verbose( test, 1 ); in main()
40 iperf_set_test_role( test, 's' ); in main()
41 iperf_set_test_server_port( test, port ); in main()
45 if ( iperf_run_server( test ) < 0 ) { in main()
54 iperf_reset_test( test ); in main()
57 iperf_free_test( test ); in main()
/iperf/
H A Daclocal.m4674 while test 0 != $[#]
1033 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
2998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6322 if test -n "$CXX" && ( test no != "$CXX" &&
7691 if test -z "$F77" || test no = "$F77"; then
7827 if test -z "$FC" || test no = "$FC"; then
9200 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9245 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
[all …]
H A Dconfigure.ac56 if test "x$GCC" = "xyes"; then
136 if test "x$with_openssl" = "xno"; then
144 [ if test "x$with_openssl" != "x"; then
168 if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
180 if test "x$iperf3_cv_header_tcp_user_timeout" = "xyes"; then
196 if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
241 if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
255 if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes"; then
269 if test "x$iperf3_cv_header_ip_dontfrag" = "xyes"; then
283 if test "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then
[all …]
H A DRELNOTES.md119 or exceed this bitrate during a test will be terminated. The
254 * iperf3 no longer counts data received after the end of a test in
279 end-of-test statistics to the server (#677). This fixes a
313 test after exactly fifteen seconds has been fixed (#645).
396 the statistics reporting interval) at the end of the test run if
483 burstiness, to packet loss, to complete failure of the test.
652 just-completed test (issue #147).
852 * The test unit format can now be set from the API (issue #144).
912 * on_test_start - executes right before the test begins
913 * on_test_finish - executes after the test is finished
[all …]
H A DREADME.md9 related to timing, protocols, and buffers. For each test it reports
122 -r, --tradeoff Do a bidirectional test individually
H A Diperf3.spec.in21 parameters related to timing, protocols, and buffers. For each test,
/iperf/docs/
H A Dinvoking.rst44 can test TCP, UDP, or SCTP throughput. To perform an iperf3 test the
83 The initial TCP connection is used to exchange test parameters, control
84 the start and end of the test, and to exchange test results. This is
85 sometimes referred to as the "control connection". The actual test
90 Normally, the test data is sent from the client to the server, and mea-
101 start of the test, amount of data transferred during the interval, and
107 At the end of the test is a set of statistics that shows (at least as
108 much as possible) a summary of the test as seen by both the sender and
114 test by specifying the --get-server-output flag.
119 known after the test has finished, no JSON output will be emitted until
[all …]
H A Dfaq.rst130 TCP throughput drops to (almost) zero during a test, what's going on?
166 To test whether TSO/LSO may be the problem, do the following:
170 enabled on the client machine, this test should succeed.
178 etc. With TSO/LSO issue in each test the throughput should be
218 I'm trying to use iperf3 to test a 40G/100G link...What do I need to know?
226 manage the start and end of each test. Sometimes the commands on
228 the test data has been processed. Thus the test ends with data
235 including filesystem and disk overheads. So while the test will
H A Ddev.rst62 -d, --dualtest Do a bidirectional test simultaneously
63 -r, --tradeoff Do a bidirectional test individually
102 * The results printed on the server side at the end of a test do not
108 the end of a test (particularly a UDP test), containing few or no
168 5. From another host, test the link in the release announcement by
H A Dindex.rst12 each test it reports the measured throughput, loss, and other
/iperf/config/
H A Diperf_config_static_bin.m48 AM_CONDITIONAL([ENABLE_STATIC_BIN], [test x$enable_static_bin = xno])
10 AS_IF([test "x$enable_static_bin" == xyes],
H A Dax_check_openssl.m455 if test x"$PKG_CONFIG" != x""; then
57 if test $? = 0; then
79 if test -f "$ssldir/include/openssl/ssl.h"; then

12