DAST: Iperf - missing initialization in iperf 2.0.2 - mbarton --at-- taprootsystems.com
>Date: Wed, 5 Oct 2005 12:55:47 -0500
>To: mbarton --at-- taprootsystems.com
>Subject: DAST: Iperf - missing initialization in iperf 2.0.2 - mbarton
--at-- taprootsystems.com
>
>
>Contacting DAST re: Bug report about Iperf
>From: Matthew Barton <mbarton --at-- taprootsystems.com>
>
>Subject: missing initialization in iperf 2.0.2
>
>Question/Comment:
>Hi, I compiled iperf 2.0.2 in WinCE for the non-threaded version
(HAVE_THREAD is not defined), and in Reporter.c, there are 2 lines missing
which are present in the threaded version. They are required initialization
to get periodic reports to print correctly.
>
>Here is the change: just after line 309, copy the lines 299-300.
>
>It ends up looking like this:
>#else
> // set start time
> gettimeofday( &(reporthdr->report.startTime), NULL );
>//TRS:MEB missing this essential code
> reporthdr->report.nextTime = reporthdr->report.startTime;
> TimeAdd( reporthdr->report.nextTime,
reporthdr->report.intervalTime );
>//end TRS
> /*
> * Process the report in this thread
> */
> reporthdr->next = NULL;
> process_report ( reporthdr );
>#endif
>
>Thanks for sharing and supporting iperf, it is a great tool!
>Best regards,
>Matthew Barton
>TapRoot Systems, Inc.
>
>
--
Mitch Kutzko | mitch --at-- dast.nlanr.net | mitch --at-- ncsa.uiuc.edu | 217-333-1199
http://hobbes.ncsa.uiuc.edu/