• Home
  • Raw
  • Download

Lines Matching refs:ipt

127 iperf_get_verbose(struct iperf_test *ipt)  in iperf_get_verbose()  argument
129 return ipt->verbose; in iperf_get_verbose()
133 iperf_get_control_socket(struct iperf_test *ipt) in iperf_get_control_socket() argument
135 return ipt->ctrl_sck; in iperf_get_control_socket()
139 iperf_get_control_socket_mss(struct iperf_test *ipt) in iperf_get_control_socket_mss() argument
141 return ipt->ctrl_sck_mss; in iperf_get_control_socket_mss()
145 iperf_get_test_omit(struct iperf_test *ipt) in iperf_get_test_omit() argument
147 return ipt->omit; in iperf_get_test_omit()
151 iperf_get_test_duration(struct iperf_test *ipt) in iperf_get_test_duration() argument
153 return ipt->duration; in iperf_get_test_duration()
157 iperf_get_test_rate(struct iperf_test *ipt) in iperf_get_test_rate() argument
159 return ipt->settings->rate; in iperf_get_test_rate()
163 iperf_get_test_fqrate(struct iperf_test *ipt) in iperf_get_test_fqrate() argument
165 return ipt->settings->fqrate; in iperf_get_test_fqrate()
169 iperf_get_test_pacing_timer(struct iperf_test *ipt) in iperf_get_test_pacing_timer() argument
171 return ipt->settings->pacing_timer; in iperf_get_test_pacing_timer()
175 iperf_get_test_bytes(struct iperf_test *ipt) in iperf_get_test_bytes() argument
177 return (uint64_t) ipt->settings->bytes; in iperf_get_test_bytes()
181 iperf_get_test_blocks(struct iperf_test *ipt) in iperf_get_test_blocks() argument
183 return (uint64_t) ipt->settings->blocks; in iperf_get_test_blocks()
187 iperf_get_test_burst(struct iperf_test *ipt) in iperf_get_test_burst() argument
189 return ipt->settings->burst; in iperf_get_test_burst()
193 iperf_get_test_role(struct iperf_test *ipt) in iperf_get_test_role() argument
195 return ipt->role; in iperf_get_test_role()
199 iperf_get_test_reverse(struct iperf_test *ipt) in iperf_get_test_reverse() argument
201 return ipt->reverse; in iperf_get_test_reverse()
205 iperf_get_test_blksize(struct iperf_test *ipt) in iperf_get_test_blksize() argument
207 return ipt->settings->blksize; in iperf_get_test_blksize()
211 iperf_get_test_outfile (struct iperf_test *ipt) in iperf_get_test_outfile() argument
213 return ipt->outfile; in iperf_get_test_outfile()
217 iperf_get_test_socket_bufsize(struct iperf_test *ipt) in iperf_get_test_socket_bufsize() argument
219 return ipt->settings->socket_bufsize; in iperf_get_test_socket_bufsize()
223 iperf_get_test_reporter_interval(struct iperf_test *ipt) in iperf_get_test_reporter_interval() argument
225 return ipt->reporter_interval; in iperf_get_test_reporter_interval()
229 iperf_get_test_stats_interval(struct iperf_test *ipt) in iperf_get_test_stats_interval() argument
231 return ipt->stats_interval; in iperf_get_test_stats_interval()
235 iperf_get_test_num_streams(struct iperf_test *ipt) in iperf_get_test_num_streams() argument
237 return ipt->num_streams; in iperf_get_test_num_streams()
241 iperf_get_test_server_port(struct iperf_test *ipt) in iperf_get_test_server_port() argument
243 return ipt->server_port; in iperf_get_test_server_port()
247 iperf_get_test_server_hostname(struct iperf_test *ipt) in iperf_get_test_server_hostname() argument
249 return ipt->server_hostname; in iperf_get_test_server_hostname()
253 iperf_get_test_template(struct iperf_test *ipt) in iperf_get_test_template() argument
255 return ipt->tmp_template; in iperf_get_test_template()
259 iperf_get_test_protocol_id(struct iperf_test *ipt) in iperf_get_test_protocol_id() argument
261 return ipt->protocol->id; in iperf_get_test_protocol_id()
265 iperf_get_test_json_output(struct iperf_test *ipt) in iperf_get_test_json_output() argument
267 return ipt->json_output; in iperf_get_test_json_output()
271 iperf_get_test_json_output_string(struct iperf_test *ipt) in iperf_get_test_json_output_string() argument
273 return ipt->json_output_string; in iperf_get_test_json_output_string()
277 iperf_get_test_zerocopy(struct iperf_test *ipt) in iperf_get_test_zerocopy() argument
279 return ipt->zerocopy; in iperf_get_test_zerocopy()
283 iperf_get_test_get_server_output(struct iperf_test *ipt) in iperf_get_test_get_server_output() argument
285 return ipt->get_server_output; in iperf_get_test_get_server_output()
289 iperf_get_test_unit_format(struct iperf_test *ipt) in iperf_get_test_unit_format() argument
291 return ipt->settings->unit_format; in iperf_get_test_unit_format()
295 iperf_get_test_bind_address(struct iperf_test *ipt) in iperf_get_test_bind_address() argument
297 return ipt->bind_address; in iperf_get_test_bind_address()
301 iperf_get_test_udp_counters_64bit(struct iperf_test *ipt) in iperf_get_test_udp_counters_64bit() argument
303 return ipt->udp_counters_64bit; in iperf_get_test_udp_counters_64bit()
307 iperf_get_test_one_off(struct iperf_test *ipt) in iperf_get_test_one_off() argument
309 return ipt->one_off; in iperf_get_test_one_off()
313 iperf_get_test_tos(struct iperf_test *ipt) in iperf_get_test_tos() argument
315 return ipt->settings->tos; in iperf_get_test_tos()
319 iperf_get_test_extra_data(struct iperf_test *ipt) in iperf_get_test_extra_data() argument
321 return ipt->extra_data; in iperf_get_test_extra_data()
334 iperf_set_verbose(struct iperf_test *ipt, int verbose) in iperf_set_verbose() argument
336 ipt->verbose = verbose; in iperf_set_verbose()
340 iperf_set_control_socket(struct iperf_test *ipt, int ctrl_sck) in iperf_set_control_socket() argument
342 ipt->ctrl_sck = ctrl_sck; in iperf_set_control_socket()
346 iperf_set_test_omit(struct iperf_test *ipt, int omit) in iperf_set_test_omit() argument
348 ipt->omit = omit; in iperf_set_test_omit()
352 iperf_set_test_duration(struct iperf_test *ipt, int duration) in iperf_set_test_duration() argument
354 ipt->duration = duration; in iperf_set_test_duration()
358 iperf_set_test_reporter_interval(struct iperf_test *ipt, double reporter_interval) in iperf_set_test_reporter_interval() argument
360 ipt->reporter_interval = reporter_interval; in iperf_set_test_reporter_interval()
364 iperf_set_test_stats_interval(struct iperf_test *ipt, double stats_interval) in iperf_set_test_stats_interval() argument
366 ipt->stats_interval = stats_interval; in iperf_set_test_stats_interval()
370 iperf_set_test_state(struct iperf_test *ipt, signed char state) in iperf_set_test_state() argument
372 ipt->state = state; in iperf_set_test_state()
376 iperf_set_test_blksize(struct iperf_test *ipt, int blksize) in iperf_set_test_blksize() argument
378 ipt->settings->blksize = blksize; in iperf_set_test_blksize()
382 iperf_set_test_rate(struct iperf_test *ipt, uint64_t rate) in iperf_set_test_rate() argument
384 ipt->settings->rate = rate; in iperf_set_test_rate()
388 iperf_set_test_fqrate(struct iperf_test *ipt, uint64_t fqrate) in iperf_set_test_fqrate() argument
390 ipt->settings->fqrate = fqrate; in iperf_set_test_fqrate()
394 iperf_set_test_pacing_timer(struct iperf_test *ipt, int pacing_timer) in iperf_set_test_pacing_timer() argument
396 ipt->settings->pacing_timer = pacing_timer; in iperf_set_test_pacing_timer()
400 iperf_set_test_bytes(struct iperf_test *ipt, uint64_t bytes) in iperf_set_test_bytes() argument
402 ipt->settings->bytes = (iperf_size_t) bytes; in iperf_set_test_bytes()
406 iperf_set_test_blocks(struct iperf_test *ipt, uint64_t blocks) in iperf_set_test_blocks() argument
408 ipt->settings->blocks = (iperf_size_t) blocks; in iperf_set_test_blocks()
412 iperf_set_test_burst(struct iperf_test *ipt, int burst) in iperf_set_test_burst() argument
414 ipt->settings->burst = burst; in iperf_set_test_burst()
418 iperf_set_test_server_port(struct iperf_test *ipt, int srv_port) in iperf_set_test_server_port() argument
420 ipt->server_port = srv_port; in iperf_set_test_server_port()
424 iperf_set_test_socket_bufsize(struct iperf_test *ipt, int socket_bufsize) in iperf_set_test_socket_bufsize() argument
426 ipt->settings->socket_bufsize = socket_bufsize; in iperf_set_test_socket_bufsize()
430 iperf_set_test_num_streams(struct iperf_test *ipt, int num_streams) in iperf_set_test_num_streams() argument
432 ipt->num_streams = num_streams; in iperf_set_test_num_streams()
436 check_sender_has_retransmits(struct iperf_test *ipt) in check_sender_has_retransmits() argument
438 if (ipt->mode != RECEIVER && ipt->protocol->id == Ptcp && has_tcpinfo_retransmits()) in check_sender_has_retransmits()
439 ipt->sender_has_retransmits = 1; in check_sender_has_retransmits()
441 ipt->sender_has_retransmits = 0; in check_sender_has_retransmits()
445 iperf_set_test_role(struct iperf_test *ipt, char role) in iperf_set_test_role() argument
447 ipt->role = role; in iperf_set_test_role()
448 if (!ipt->reverse) { in iperf_set_test_role()
450 ipt->mode = SENDER; in iperf_set_test_role()
452 ipt->mode = RECEIVER; in iperf_set_test_role()
455 ipt->mode = RECEIVER; in iperf_set_test_role()
457 ipt->mode = SENDER; in iperf_set_test_role()
459 check_sender_has_retransmits(ipt); in iperf_set_test_role()
463 iperf_set_test_server_hostname(struct iperf_test *ipt, char *server_hostname) in iperf_set_test_server_hostname() argument
465 ipt->server_hostname = strdup(server_hostname); in iperf_set_test_server_hostname()
469 iperf_set_test_template(struct iperf_test *ipt, char *tmp_template) in iperf_set_test_template() argument
471 ipt->tmp_template = strdup(tmp_template); in iperf_set_test_template()
475 iperf_set_test_reverse(struct iperf_test *ipt, int reverse) in iperf_set_test_reverse() argument
477 ipt->reverse = reverse; in iperf_set_test_reverse()
478 if (!ipt->reverse) { in iperf_set_test_reverse()
479 if (ipt->role == 'c') in iperf_set_test_reverse()
480 ipt->mode = SENDER; in iperf_set_test_reverse()
481 else if (ipt->role == 's') in iperf_set_test_reverse()
482 ipt->mode = RECEIVER; in iperf_set_test_reverse()
484 if (ipt->role == 'c') in iperf_set_test_reverse()
485 ipt->mode = RECEIVER; in iperf_set_test_reverse()
486 else if (ipt->role == 's') in iperf_set_test_reverse()
487 ipt->mode = SENDER; in iperf_set_test_reverse()
489 check_sender_has_retransmits(ipt); in iperf_set_test_reverse()
493 iperf_set_test_json_output(struct iperf_test *ipt, int json_output) in iperf_set_test_json_output() argument
495 ipt->json_output = json_output; in iperf_set_test_json_output()
505 iperf_set_test_zerocopy(struct iperf_test *ipt, int zerocopy) in iperf_set_test_zerocopy() argument
507 ipt->zerocopy = (zerocopy && has_sendfile()); in iperf_set_test_zerocopy()
511 iperf_set_test_get_server_output(struct iperf_test *ipt, int get_server_output) in iperf_set_test_get_server_output() argument
513 ipt->get_server_output = get_server_output; in iperf_set_test_get_server_output()
517 iperf_set_test_unit_format(struct iperf_test *ipt, char unit_format) in iperf_set_test_unit_format() argument
519 ipt->settings->unit_format = unit_format; in iperf_set_test_unit_format()
524 iperf_set_test_client_username(struct iperf_test *ipt, char *client_username) in iperf_set_test_client_username() argument
526 ipt->settings->client_username = client_username; in iperf_set_test_client_username()
530 iperf_set_test_client_password(struct iperf_test *ipt, char *client_password) in iperf_set_test_client_password() argument
532 ipt->settings->client_password = client_password; in iperf_set_test_client_password()
536 iperf_set_test_client_rsa_pubkey(struct iperf_test *ipt, char *client_rsa_pubkey_base64) in iperf_set_test_client_rsa_pubkey() argument
538 ipt->settings->client_rsa_pubkey = load_pubkey_from_base64(client_rsa_pubkey_base64); in iperf_set_test_client_rsa_pubkey()
543 iperf_set_test_bind_address(struct iperf_test *ipt, char *bnd_address) in iperf_set_test_bind_address() argument
545 ipt->bind_address = strdup(bnd_address); in iperf_set_test_bind_address()
549 iperf_set_test_udp_counters_64bit(struct iperf_test *ipt, int udp_counters_64bit) in iperf_set_test_udp_counters_64bit() argument
551 ipt->udp_counters_64bit = udp_counters_64bit; in iperf_set_test_udp_counters_64bit()
555 iperf_set_test_one_off(struct iperf_test *ipt, int one_off) in iperf_set_test_one_off() argument
557 ipt->one_off = one_off; in iperf_set_test_one_off()
561 iperf_set_test_tos(struct iperf_test *ipt, int tos) in iperf_set_test_tos() argument
563 ipt->settings->tos = tos; in iperf_set_test_tos()
567 iperf_set_test_extra_data(struct iperf_test *ipt, char *dat) in iperf_set_test_extra_data() argument
569 ipt->extra_data = dat; in iperf_set_test_extra_data()
573 iperf_set_test_bidirectional(struct iperf_test* ipt, int bidirectional) in iperf_set_test_bidirectional() argument
575 ipt->bidirectional = bidirectional; in iperf_set_test_bidirectional()
577 ipt->mode = BIDIRECTIONAL; in iperf_set_test_bidirectional()
579 iperf_set_test_reverse(ipt, ipt->reverse); in iperf_set_test_bidirectional()