Lines Matching refs:irp
2119 struct iperf_interval_results *irp; in add_to_interval_list() local
2121 irp = (struct iperf_interval_results *) malloc(sizeof(struct iperf_interval_results)); in add_to_interval_list()
2122 memcpy(irp, new, sizeof(struct iperf_interval_results)); in add_to_interval_list()
2123 TAILQ_INSERT_TAIL(&rp->interval_results, irp, irlistentries); in add_to_interval_list()
2586 struct iperf_interval_results *irp, temp; in iperf_stats_callback() local
2594 irp = TAILQ_LAST(&rp->interval_results, irlisthead); in iperf_stats_callback()
2596 if ( irp != NULL ) /* not the 1st interval */ in iperf_stats_callback()
2635 if (irp == NULL) { in iperf_stats_callback()
2640 temp.interval_packet_count = sp->packet_count - irp->packet_count; in iperf_stats_callback()
2641 temp.interval_outoforder_packets = sp->outoforder_packets - irp->outoforder_packets; in iperf_stats_callback()
2642 temp.interval_cnt_error = sp->cnt_error - irp->cnt_error; in iperf_stats_callback()
2664 struct iperf_interval_results *irp; in iperf_print_intermediate() local
2687 irp = TAILQ_LAST(&sp->result->interval_results, irlisthead); in iperf_print_intermediate()
2688 if (irp) { in iperf_print_intermediate()
2689 iperf_time_diff(&irp->interval_start_time, &irp->interval_end_time, &temp_time); in iperf_print_intermediate()
2692 printf("interval_len %f bytes_transferred %" PRIu64 "\n", interval_len, irp->bytes_transferred); in iperf_print_intermediate()
2701 irp->bytes_transferred > 0) { in iperf_print_intermediate()
2781 irp = TAILQ_LAST(&sp->result->interval_results, irlisthead); in iperf_print_intermediate()
2782 if (irp == NULL) { in iperf_print_intermediate()
2787 bytes += irp->bytes_transferred; in iperf_print_intermediate()
2790 retransmits += irp->interval_retrans; in iperf_print_intermediate()
2793 total_packets += irp->interval_packet_count; in iperf_print_intermediate()
2794 lost_packets += irp->interval_cnt_error; in iperf_print_intermediate()
2795 avg_jitter += irp->jitter; in iperf_print_intermediate()
2805 …irp = TAILQ_LAST(&sp->result->interval_results, irlisthead); /* use 1st stream for timing info … in iperf_print_intermediate()
2808 bandwidth = (double) bytes / (double) irp->interval_duration; in iperf_print_intermediate()
2811 iperf_time_diff(&sp->result->start_time,&irp->interval_start_time, &temp_time); in iperf_print_intermediate()
2813 iperf_time_diff(&sp->result->start_time,&irp->interval_end_time, &temp_time); in iperf_print_intermediate()
2819 …_time, (double) end_time, (double) irp->interval_duration, (int64_t) bytes, bandwidth * 8, (int64_… in iperf_print_intermediate()
2821 …um_bw_retrans_format, mbuf, start_time, end_time, ubuf, nbuf, retransmits, irp->omitted?report_omi… in iperf_print_intermediate()
2825 … omitted: %b sender: %b", (double) start_time, (double) end_time, (double) irp->interval_duration,… in iperf_print_intermediate()
2833 … omitted: %b sender: %b", (double) start_time, (double) end_time, (double) irp->interval_duration,… in iperf_print_intermediate()
2845 … omitted: %b sender: %b", (double) start_time, (double) end_time, (double) irp->interval_duration,… in iperf_print_intermediate()
3388 struct iperf_interval_results *irp = NULL; in print_interval_results() local
3398 irp = TAILQ_LAST(&sp->result->interval_results, irlisthead); /* get last entry in linked list */ in print_interval_results()
3399 if (irp == NULL) { in print_interval_results()
3410 if (iperf_time_compare(&sp->result->start_time, &irp->interval_start_time) == 0) { in print_interval_results()
3439 unit_snprintf(ubuf, UNIT_LEN, (double) (irp->bytes_transferred), 'A'); in print_interval_results()
3440 if (irp->interval_duration > 0.0) { in print_interval_results()
3441 bandwidth = (double) irp->bytes_transferred / (double) irp->interval_duration; in print_interval_results()
3448 iperf_time_diff(&sp->result->start_time, &irp->interval_start_time, &temp_time); in print_interval_results()
3450 iperf_time_diff(&sp->result->start_time, &irp->interval_end_time, &temp_time); in print_interval_results()
3457 …irp->interval_duration, (int64_t) irp->bytes_transferred, bandwidth * 8, (int64_t) irp->interval_r… in print_interval_results()
3459 unit_snprintf(cbuf, UNIT_LEN, irp->snd_cwnd, 'A'); in print_interval_results()
3460 …_retrans_cwnd_format, sp->socket, mbuf, st, et, ubuf, nbuf, irp->interval_retrans, cbuf, irp->omit… in print_interval_results()
3465 …t, (double) st, (double) et, (double) irp->interval_duration, (int64_t) irp->bytes_transferred, ba… in print_interval_results()
3467 …iperf_printf(test, report_bw_format, sp->socket, mbuf, st, et, ubuf, nbuf, irp->omitted?report_omi… in print_interval_results()
3473 …uble) et, (double) irp->interval_duration, (int64_t) irp->bytes_transferred, bandwidth * 8, (int64… in print_interval_results()
3475 …p_sender_format, sp->socket, mbuf, st, et, ubuf, nbuf, zbuf, irp->interval_packet_count, irp->omit… in print_interval_results()
3477 if (irp->interval_packet_count > 0) { in print_interval_results()
3478 lost_percent = 100.0 * irp->interval_cnt_error / irp->interval_packet_count; in print_interval_results()
3484 …irp->interval_duration, (int64_t) irp->bytes_transferred, bandwidth * 8, (double) irp->jitter * 10… in print_interval_results()
3486 …et, mbuf, st, et, ubuf, nbuf, irp->jitter * 1000.0, irp->interval_cnt_error, irp->interval_packet_… in print_interval_results()
3498 struct iperf_interval_results *irp, *nirp; in iperf_free_stream() local
3505 for (irp = TAILQ_FIRST(&sp->result->interval_results); irp != NULL; irp = nirp) { in iperf_free_stream()
3506 nirp = TAILQ_NEXT(irp, irlistentries); in iperf_free_stream()
3507 free(irp); in iperf_free_stream()