Lines Matching refs:ipt

132 iperf_get_verbose(struct iperf_test *ipt)  in iperf_get_verbose()  argument
134 return ipt->verbose; in iperf_get_verbose()
138 iperf_get_control_socket(struct iperf_test *ipt) in iperf_get_control_socket() argument
140 return ipt->ctrl_sck; in iperf_get_control_socket()
144 iperf_get_control_socket_mss(struct iperf_test *ipt) in iperf_get_control_socket_mss() argument
146 return ipt->ctrl_sck_mss; in iperf_get_control_socket_mss()
150 iperf_get_test_omit(struct iperf_test *ipt) in iperf_get_test_omit() argument
152 return ipt->omit; in iperf_get_test_omit()
156 iperf_get_test_duration(struct iperf_test *ipt) in iperf_get_test_duration() argument
158 return ipt->duration; in iperf_get_test_duration()
162 iperf_get_test_rate(struct iperf_test *ipt) in iperf_get_test_rate() argument
164 return ipt->settings->rate; in iperf_get_test_rate()
168 iperf_get_test_bitrate_limit(struct iperf_test *ipt) in iperf_get_test_bitrate_limit() argument
170 return ipt->settings->bitrate_limit; in iperf_get_test_bitrate_limit()
174 iperf_get_test_bitrate_limit_interval(struct iperf_test *ipt) in iperf_get_test_bitrate_limit_interval() argument
176 return ipt->settings->bitrate_limit_interval; in iperf_get_test_bitrate_limit_interval()
180 iperf_get_test_bitrate_limit_stats_per_interval(struct iperf_test *ipt) in iperf_get_test_bitrate_limit_stats_per_interval() argument
182 return ipt->settings->bitrate_limit_stats_per_interval; in iperf_get_test_bitrate_limit_stats_per_interval()
186 iperf_get_test_fqrate(struct iperf_test *ipt) in iperf_get_test_fqrate() argument
188 return ipt->settings->fqrate; in iperf_get_test_fqrate()
192 iperf_get_test_pacing_timer(struct iperf_test *ipt) in iperf_get_test_pacing_timer() argument
194 return ipt->settings->pacing_timer; in iperf_get_test_pacing_timer()
198 iperf_get_test_bytes(struct iperf_test *ipt) in iperf_get_test_bytes() argument
200 return (uint64_t) ipt->settings->bytes; in iperf_get_test_bytes()
204 iperf_get_test_blocks(struct iperf_test *ipt) in iperf_get_test_blocks() argument
206 return (uint64_t) ipt->settings->blocks; in iperf_get_test_blocks()
210 iperf_get_test_burst(struct iperf_test *ipt) in iperf_get_test_burst() argument
212 return ipt->settings->burst; in iperf_get_test_burst()
216 iperf_get_test_role(struct iperf_test *ipt) in iperf_get_test_role() argument
218 return ipt->role; in iperf_get_test_role()
222 iperf_get_test_reverse(struct iperf_test *ipt) in iperf_get_test_reverse() argument
224 return ipt->reverse; in iperf_get_test_reverse()
228 iperf_get_test_blksize(struct iperf_test *ipt) in iperf_get_test_blksize() argument
230 return ipt->settings->blksize; in iperf_get_test_blksize()
234 iperf_get_test_outfile (struct iperf_test *ipt) in iperf_get_test_outfile() argument
236 return ipt->outfile; in iperf_get_test_outfile()
240 iperf_get_test_socket_bufsize(struct iperf_test *ipt) in iperf_get_test_socket_bufsize() argument
242 return ipt->settings->socket_bufsize; in iperf_get_test_socket_bufsize()
246 iperf_get_test_reporter_interval(struct iperf_test *ipt) in iperf_get_test_reporter_interval() argument
248 return ipt->reporter_interval; in iperf_get_test_reporter_interval()
252 iperf_get_test_stats_interval(struct iperf_test *ipt) in iperf_get_test_stats_interval() argument
254 return ipt->stats_interval; in iperf_get_test_stats_interval()
258 iperf_get_test_num_streams(struct iperf_test *ipt) in iperf_get_test_num_streams() argument
260 return ipt->num_streams; in iperf_get_test_num_streams()
264 iperf_get_test_timestamps(struct iperf_test *ipt) in iperf_get_test_timestamps() argument
266 return ipt->timestamps; in iperf_get_test_timestamps()
270 iperf_get_test_timestamp_format(struct iperf_test *ipt) in iperf_get_test_timestamp_format() argument
272 return ipt->timestamp_format; in iperf_get_test_timestamp_format()
276 iperf_get_test_repeating_payload(struct iperf_test *ipt) in iperf_get_test_repeating_payload() argument
278 return ipt->repeating_payload; in iperf_get_test_repeating_payload()
282 iperf_get_test_server_port(struct iperf_test *ipt) in iperf_get_test_server_port() argument
284 return ipt->server_port; in iperf_get_test_server_port()
288 iperf_get_test_server_hostname(struct iperf_test *ipt) in iperf_get_test_server_hostname() argument
290 return ipt->server_hostname; in iperf_get_test_server_hostname()
294 iperf_get_test_template(struct iperf_test *ipt) in iperf_get_test_template() argument
296 return ipt->tmp_template; in iperf_get_test_template()
300 iperf_get_test_protocol_id(struct iperf_test *ipt) in iperf_get_test_protocol_id() argument
302 return ipt->protocol->id; in iperf_get_test_protocol_id()
306 iperf_get_test_json_output(struct iperf_test *ipt) in iperf_get_test_json_output() argument
308 return ipt->json_output; in iperf_get_test_json_output()
312 iperf_get_test_json_output_string(struct iperf_test *ipt) in iperf_get_test_json_output_string() argument
314 return ipt->json_output_string; in iperf_get_test_json_output_string()
318 iperf_get_test_zerocopy(struct iperf_test *ipt) in iperf_get_test_zerocopy() argument
320 return ipt->zerocopy; in iperf_get_test_zerocopy()
324 iperf_get_test_get_server_output(struct iperf_test *ipt) in iperf_get_test_get_server_output() argument
326 return ipt->get_server_output; in iperf_get_test_get_server_output()
330 iperf_get_test_unit_format(struct iperf_test *ipt) in iperf_get_test_unit_format() argument
332 return ipt->settings->unit_format; in iperf_get_test_unit_format()
336 iperf_get_test_bind_address(struct iperf_test *ipt) in iperf_get_test_bind_address() argument
338 return ipt->bind_address; in iperf_get_test_bind_address()
342 iperf_get_test_udp_counters_64bit(struct iperf_test *ipt) in iperf_get_test_udp_counters_64bit() argument
344 return ipt->udp_counters_64bit; in iperf_get_test_udp_counters_64bit()
348 iperf_get_test_one_off(struct iperf_test *ipt) in iperf_get_test_one_off() argument
350 return ipt->one_off; in iperf_get_test_one_off()
354 iperf_get_test_tos(struct iperf_test *ipt) in iperf_get_test_tos() argument
356 return ipt->settings->tos; in iperf_get_test_tos()
360 iperf_get_test_extra_data(struct iperf_test *ipt) in iperf_get_test_extra_data() argument
362 return ipt->extra_data; in iperf_get_test_extra_data()
373 iperf_get_test_no_delay(struct iperf_test *ipt) in iperf_get_test_no_delay() argument
375 return ipt->no_delay; in iperf_get_test_no_delay()
379 iperf_get_test_connect_timeout(struct iperf_test *ipt) in iperf_get_test_connect_timeout() argument
381 return ipt->settings->connect_timeout; in iperf_get_test_connect_timeout()
387 iperf_set_verbose(struct iperf_test *ipt, int verbose) in iperf_set_verbose() argument
389 ipt->verbose = verbose; in iperf_set_verbose()
393 iperf_set_control_socket(struct iperf_test *ipt, int ctrl_sck) in iperf_set_control_socket() argument
395 ipt->ctrl_sck = ctrl_sck; in iperf_set_control_socket()
399 iperf_set_test_omit(struct iperf_test *ipt, int omit) in iperf_set_test_omit() argument
401 ipt->omit = omit; in iperf_set_test_omit()
405 iperf_set_test_duration(struct iperf_test *ipt, int duration) in iperf_set_test_duration() argument
407 ipt->duration = duration; in iperf_set_test_duration()
411 iperf_set_test_reporter_interval(struct iperf_test *ipt, double reporter_interval) in iperf_set_test_reporter_interval() argument
413 ipt->reporter_interval = reporter_interval; in iperf_set_test_reporter_interval()
417 iperf_set_test_stats_interval(struct iperf_test *ipt, double stats_interval) in iperf_set_test_stats_interval() argument
419 ipt->stats_interval = stats_interval; in iperf_set_test_stats_interval()
423 iperf_set_test_state(struct iperf_test *ipt, signed char state) in iperf_set_test_state() argument
425 ipt->state = state; in iperf_set_test_state()
429 iperf_set_test_blksize(struct iperf_test *ipt, int blksize) in iperf_set_test_blksize() argument
431 ipt->settings->blksize = blksize; in iperf_set_test_blksize()
435 iperf_set_test_logfile(struct iperf_test *ipt, const char *logfile) in iperf_set_test_logfile() argument
437 ipt->logfile = strdup(logfile); in iperf_set_test_logfile()
441 iperf_set_test_rate(struct iperf_test *ipt, uint64_t rate) in iperf_set_test_rate() argument
443 ipt->settings->rate = rate; in iperf_set_test_rate()
447 iperf_set_test_bitrate_limit_maximum(struct iperf_test *ipt, uint64_t total_rate) in iperf_set_test_bitrate_limit_maximum() argument
449 ipt->settings->bitrate_limit = total_rate; in iperf_set_test_bitrate_limit_maximum()
453 iperf_set_test_bitrate_limit_interval(struct iperf_test *ipt, uint64_t bitrate_limit_interval) in iperf_set_test_bitrate_limit_interval() argument
455 ipt->settings->bitrate_limit_interval = bitrate_limit_interval; in iperf_set_test_bitrate_limit_interval()
459 iperf_set_test_bitrate_limit_stats_per_interval(struct iperf_test *ipt, uint64_t bitrate_limit_stat… in iperf_set_test_bitrate_limit_stats_per_interval() argument
461 ipt->settings->bitrate_limit_stats_per_interval = bitrate_limit_stats_per_interval; in iperf_set_test_bitrate_limit_stats_per_interval()
465 iperf_set_test_fqrate(struct iperf_test *ipt, uint64_t fqrate) in iperf_set_test_fqrate() argument
467 ipt->settings->fqrate = fqrate; in iperf_set_test_fqrate()
471 iperf_set_test_pacing_timer(struct iperf_test *ipt, int pacing_timer) in iperf_set_test_pacing_timer() argument
473 ipt->settings->pacing_timer = pacing_timer; in iperf_set_test_pacing_timer()
477 iperf_set_test_bytes(struct iperf_test *ipt, uint64_t bytes) in iperf_set_test_bytes() argument
479 ipt->settings->bytes = (iperf_size_t) bytes; in iperf_set_test_bytes()
483 iperf_set_test_blocks(struct iperf_test *ipt, uint64_t blocks) in iperf_set_test_blocks() argument
485 ipt->settings->blocks = (iperf_size_t) blocks; in iperf_set_test_blocks()
489 iperf_set_test_burst(struct iperf_test *ipt, int burst) in iperf_set_test_burst() argument
491 ipt->settings->burst = burst; in iperf_set_test_burst()
495 iperf_set_test_server_port(struct iperf_test *ipt, int srv_port) in iperf_set_test_server_port() argument
497 ipt->server_port = srv_port; in iperf_set_test_server_port()
501 iperf_set_test_socket_bufsize(struct iperf_test *ipt, int socket_bufsize) in iperf_set_test_socket_bufsize() argument
503 ipt->settings->socket_bufsize = socket_bufsize; in iperf_set_test_socket_bufsize()
507 iperf_set_test_num_streams(struct iperf_test *ipt, int num_streams) in iperf_set_test_num_streams() argument
509 ipt->num_streams = num_streams; in iperf_set_test_num_streams()
513 iperf_set_test_repeating_payload(struct iperf_test *ipt, int repeating_payload) in iperf_set_test_repeating_payload() argument
515 ipt->repeating_payload = repeating_payload; in iperf_set_test_repeating_payload()
519 iperf_set_test_timestamps(struct iperf_test *ipt, int timestamps) in iperf_set_test_timestamps() argument
521 ipt->timestamps = timestamps; in iperf_set_test_timestamps()
525 iperf_set_test_timestamp_format(struct iperf_test *ipt, const char *tf) in iperf_set_test_timestamp_format() argument
527 ipt->timestamp_format = strdup(tf); in iperf_set_test_timestamp_format()
531 check_sender_has_retransmits(struct iperf_test *ipt) in check_sender_has_retransmits() argument
533 if (ipt->mode != RECEIVER && ipt->protocol->id == Ptcp && has_tcpinfo_retransmits()) in check_sender_has_retransmits()
534 ipt->sender_has_retransmits = 1; in check_sender_has_retransmits()
536 ipt->sender_has_retransmits = 0; in check_sender_has_retransmits()
540 iperf_set_test_role(struct iperf_test *ipt, char role) in iperf_set_test_role() argument
542 ipt->role = role; in iperf_set_test_role()
543 if (!ipt->reverse) { in iperf_set_test_role()
544 if (ipt->bidirectional) in iperf_set_test_role()
545 ipt->mode = BIDIRECTIONAL; in iperf_set_test_role()
547 ipt->mode = SENDER; in iperf_set_test_role()
549 ipt->mode = RECEIVER; in iperf_set_test_role()
552 ipt->mode = RECEIVER; in iperf_set_test_role()
554 ipt->mode = SENDER; in iperf_set_test_role()
556 check_sender_has_retransmits(ipt); in iperf_set_test_role()
560 iperf_set_test_server_hostname(struct iperf_test *ipt, const char *server_hostname) in iperf_set_test_server_hostname() argument
562 ipt->server_hostname = strdup(server_hostname); in iperf_set_test_server_hostname()
566 iperf_set_test_template(struct iperf_test *ipt, const char *tmp_template) in iperf_set_test_template() argument
568 ipt->tmp_template = strdup(tmp_template); in iperf_set_test_template()
572 iperf_set_test_reverse(struct iperf_test *ipt, int reverse) in iperf_set_test_reverse() argument
574 ipt->reverse = reverse; in iperf_set_test_reverse()
575 if (!ipt->reverse) { in iperf_set_test_reverse()
576 if (ipt->role == 'c') in iperf_set_test_reverse()
577 ipt->mode = SENDER; in iperf_set_test_reverse()
578 else if (ipt->role == 's') in iperf_set_test_reverse()
579 ipt->mode = RECEIVER; in iperf_set_test_reverse()
581 if (ipt->role == 'c') in iperf_set_test_reverse()
582 ipt->mode = RECEIVER; in iperf_set_test_reverse()
583 else if (ipt->role == 's') in iperf_set_test_reverse()
584 ipt->mode = SENDER; in iperf_set_test_reverse()
586 check_sender_has_retransmits(ipt); in iperf_set_test_reverse()
590 iperf_set_test_json_output(struct iperf_test *ipt, int json_output) in iperf_set_test_json_output() argument
592 ipt->json_output = json_output; in iperf_set_test_json_output()
602 iperf_set_test_zerocopy(struct iperf_test *ipt, int zerocopy) in iperf_set_test_zerocopy() argument
604 ipt->zerocopy = (zerocopy && has_sendfile()); in iperf_set_test_zerocopy()
608 iperf_set_test_get_server_output(struct iperf_test *ipt, int get_server_output) in iperf_set_test_get_server_output() argument
610 ipt->get_server_output = get_server_output; in iperf_set_test_get_server_output()
614 iperf_set_test_unit_format(struct iperf_test *ipt, char unit_format) in iperf_set_test_unit_format() argument
616 ipt->settings->unit_format = unit_format; in iperf_set_test_unit_format()
621 iperf_set_test_client_username(struct iperf_test *ipt, const char *client_username) in iperf_set_test_client_username() argument
623 ipt->settings->client_username = strdup(client_username); in iperf_set_test_client_username()
627 iperf_set_test_client_password(struct iperf_test *ipt, const char *client_password) in iperf_set_test_client_password() argument
629 ipt->settings->client_password = strdup(client_password); in iperf_set_test_client_password()
633 iperf_set_test_client_rsa_pubkey(struct iperf_test *ipt, const char *client_rsa_pubkey_base64) in iperf_set_test_client_rsa_pubkey() argument
635 ipt->settings->client_rsa_pubkey = load_pubkey_from_base64(client_rsa_pubkey_base64); in iperf_set_test_client_rsa_pubkey()
639 iperf_set_test_server_authorized_users(struct iperf_test *ipt, const char *server_authorized_users) in iperf_set_test_server_authorized_users() argument
641 ipt->server_authorized_users = strdup(server_authorized_users); in iperf_set_test_server_authorized_users()
645 iperf_set_test_server_rsa_privkey(struct iperf_test *ipt, const char *server_rsa_privkey_base64) in iperf_set_test_server_rsa_privkey() argument
647 ipt->server_rsa_private_key = load_privkey_from_base64(server_rsa_privkey_base64); in iperf_set_test_server_rsa_privkey()
652 iperf_set_test_bind_address(struct iperf_test *ipt, const char *bnd_address) in iperf_set_test_bind_address() argument
654 ipt->bind_address = strdup(bnd_address); in iperf_set_test_bind_address()
658 iperf_set_test_udp_counters_64bit(struct iperf_test *ipt, int udp_counters_64bit) in iperf_set_test_udp_counters_64bit() argument
660 ipt->udp_counters_64bit = udp_counters_64bit; in iperf_set_test_udp_counters_64bit()
664 iperf_set_test_one_off(struct iperf_test *ipt, int one_off) in iperf_set_test_one_off() argument
666 ipt->one_off = one_off; in iperf_set_test_one_off()
670 iperf_set_test_tos(struct iperf_test *ipt, int tos) in iperf_set_test_tos() argument
672 ipt->settings->tos = tos; in iperf_set_test_tos()
676 iperf_set_test_extra_data(struct iperf_test *ipt, const char *dat) in iperf_set_test_extra_data() argument
678 ipt->extra_data = strdup(dat); in iperf_set_test_extra_data()
682 iperf_set_test_bidirectional(struct iperf_test* ipt, int bidirectional) in iperf_set_test_bidirectional() argument
684 ipt->bidirectional = bidirectional; in iperf_set_test_bidirectional()
686 ipt->mode = BIDIRECTIONAL; in iperf_set_test_bidirectional()
688 iperf_set_test_reverse(ipt, ipt->reverse); in iperf_set_test_bidirectional()
692 iperf_set_test_no_delay(struct iperf_test* ipt, int no_delay) in iperf_set_test_no_delay() argument
694 ipt->no_delay = no_delay; in iperf_set_test_no_delay()
698 iperf_set_test_connect_timeout(struct iperf_test* ipt, int ct) in iperf_set_test_connect_timeout() argument
700 ipt->settings->connect_timeout = ct; in iperf_set_test_connect_timeout()