Jef Poskanzer
45080fc6b7
Fixed little glitch in argument handling order: "-l nnn -u" was
...
setting the block size back to the UDP default, while "-u -l nnn"
worked. Now both orders work.
2013-01-28 11:48:19 -08:00
Jef Poskanzer
6177a7f1f1
Get rid of extra select() calls before reading and writing,
...
in both client and server. Instead we pass in and use the
fdsets from the main loop's select().
2013-01-18 10:17:05 -08:00
Jef Poskanzer
d7613a8e9f
Allow API client to provide an fd for the client-side control socket.
2012-12-13 09:37:55 -08:00
Jef Poskanzer
5cd3317d98
Get rid of compiler warning.
2012-12-11 22:45:15 -08:00
Jef Poskanzer
88dd44b040
Need a couple more include files to compile on FreeBSD.
2012-12-11 22:41:37 -08:00
Jef Poskanzer
ec2d0670b8
Switched to using a new timer package, adapted from thttpd and http_load.
2012-12-11 22:29:26 -08:00
Jef Poskanzer
9673370f98
Move non-timer routines from timer.[hc] to iperf_util.[hc]
2012-12-05 12:34:58 -08:00
Jef Poskanzer
d6e2781d18
Better detection of when linux has retransmit info in tcp_info.
2012-12-03 22:02:31 -08:00
Jef Poskanzer
9d1fc7c676
Line up output columns better.
2012-12-03 16:20:49 -08:00
Jef Poskanzer
d7ebadafa4
Make the retransmits code compile again on systems without retransmits.
2012-12-03 16:00:14 -08:00
Jef Poskanzer
46baab59e8
Disable retransmit reporting for FreeBSD, it's not actually
...
implemented in the OS yet.
2012-12-03 15:50:29 -08:00
Jef Poskanzer
acad430d3d
Fix retransmit reporting for Linux.
2012-12-03 15:48:54 -08:00
Jef Poskanzer
437537fe30
Test commit.
2012-11-30 12:16:17 -08:00
jef
eb3c71b8fe
Don't do getsockopt(TCP_INFO) on UDP runs.
2012-11-30 10:13:25 -08:00
jef
874856ab6b
Show retransmit count for FreeBSD too. This may not actually
...
be implemented by the OS yet - the struct member starting with
a double underscore indicates that it's not fully implemented.
2012-11-28 07:22:51 -08:00
jef
0d48915c69
A few portability changes, now builds on OSX without warnings.
2012-11-13 11:33:52 -08:00
jef
0115558217
Run uname for the -v/--version flag. Also, show version and uname for
...
the -V/--verbose flag. Still debating whether version/uname should be
shown by default.
2012-11-12 10:01:26 -08:00
jef
6b7db8f774
Get rid of the -T/--tcpinfo flag and show retransmits if they
...
are available.
Also, show them in interval results as well as at the end.
2012-11-09 16:02:42 -08:00
jef
8a0cc10076
Testing timeval equality deserves to be its own routine.
2012-11-02 09:04:46 -07:00
jef
99502d9409
Re-jiggered the "Interval Transfer Bandwidth" header so it only
...
appears at the start and end of the results, and added a separator
line when there are both multiple streams and multiple intervals.
2012-10-29 22:30:31 -07:00
jef
7b43a90638
Switch the JSON parameter names from single letters to words.
...
That gets rid of the case-sensitivity issue, and is nicer.
2012-10-27 17:29:29 -07:00
jef
d23d944f12
Fix JSON parsing to handle very long ints better. Should still
...
do something better about them on output.
2012-10-27 16:43:04 -07:00
jef
ff3c7fba24
JSON names are case-insensitive so we have to use different
...
names for e.g. p and P. I prefixed the upper case flags with "cap".
2012-10-27 16:24:54 -07:00
jef
53a87a0b9d
Oops, -lm is still needed by cjson for floor(). Still worth getting
...
rid of pow() though.
2012-10-26 07:45:28 -07:00
jef
ea71aaeaee
Fixed cjson to not need -lm any more, by adding an ipow() routine
...
to use instead of pow().
2012-10-25 22:14:02 -07:00
jef
4095757536
Converted the parameter exchange to use JSON.
...
This also gets rid of the antique tiny version of getopt that I added
to hack around a stubborn SEGV error.
2012-10-18 13:08:30 -07:00
jef
23481e7953
Converted the results exchange to use JSON.
2012-10-18 10:47:27 -07:00
jef
10d202a998
Simplify/clarify use of htonl/ntohl.
2012-10-17 09:14:14 -07:00
jef
0b96eba3e3
Move results-formatting into a new format_results() function.
...
Also, parse_results() doesn't need to be declared in iperf_api.h.
There are probably a whole bunch of other routines in there which
should be similarly made module-local.
2012-10-17 08:30:12 -07:00
jef
a497129b4d
Oops, the cjson files need to be in the src directory.
...
Also changed the makefiles so that cjson gets compiled and linked in.
Next step: actually call it.
2012-10-15 09:49:20 -07:00
jef
8bb79aee26
Switched interval_results to use the queue.h macros.
2012-10-05 10:24:03 -07:00
jef
98ce496b1b
Some changes to the iperf3 API to work with bwctl, mostly having to
...
do with what defs are in which include file. End result is we now have
only one public include file, iperf_api.h.
2012-09-28 16:00:14 -07:00
jef
56a97f9337
Commented 'AX_LIB_SOCKET_NSL' out of configure.ac to fix build problem.
...
There's still lots of historical cruft in there, at some point we should
start over from a more modern template.
2012-08-20 14:35:58 -07:00
jef
2ab386bf13
Got rid of libuuid stuff, for portability.
2012-08-10 12:43:50 -07:00
Jon Dugan
94d391af37
Fix stats for multiple streams from Alexey Zaytsev <alexey.zaytsev@gmail.com>
2011-05-02 23:09:06 +00:00
Jon Dugan
7d375156aa
update license info for all source files
2011-04-20 20:33:09 +00:00
sethdelliott
fecb120f91
Fixed TCP_INFO bug on linux. BSD prints nothing for now...
2011-03-16 18:17:54 +00:00
sethdelliott
e170832926
Added working TCP_INFO code (only displays retransmits for now)
2011-03-16 17:43:25 +00:00
sethdelliott
f970ce8ecd
Added warning() function for iperf warnings. Using --server and --udp now gives a warning instead of an error.
2011-03-10 15:56:17 +00:00
sethdelliott
ad426c6fd4
Added CPU utilization exchange and display (use verbose mode [-V]).
2011-03-02 21:32:04 +00:00
sethdelliott
3331e801b9
Added portable CPU utilization code. Still need to exchange utilizations between client and server.
2011-02-24 17:08:54 +00:00
Jon Dugan
9286415c86
update autoconf goo to accomodate Solaris; minor tweaks to includes for Solaris
2010-09-20 21:50:12 +00:00
Jon Dugan
1fac1d2626
add queue.h from OpenBSD; use self contained queue.h from OpenBSD; fix indenting on previous commit
2010-09-08 20:35:47 +00:00
Jon Dugan
009a41300f
if IPV6_TCLASS isn't defined do something reasonable
2010-09-08 20:33:54 +00:00
sethdelliott
2c206d5456
Critical server errors are now communicated back to client
2010-08-05 20:09:54 +00:00
sethdelliott
02a35f07e3
Merged print mss (-m) into verbose mode (-V)
2010-08-04 19:19:08 +00:00
sethdelliott
9a599d5f8d
Added support for setting the IP TOS (IPv4) and IPv6 Traffic Class (-S option)
2010-08-03 21:38:48 +00:00
sethdelliott
76ceadbc24
Updated documentation
2010-08-02 23:30:22 +00:00
sethdelliott
0e8720fa64
Small memory leak fixes in iperf_free_test.
2010-08-02 23:15:27 +00:00
sethdelliott
0bd8d9da6e
Added ability to set TCP window size (-w). Modified code to keep test structures intact after a test is complete. Improved interval timer granularity. Fixed a bug with timeval_diff.
2010-08-02 22:45:53 +00:00
sethdelliott
4559e27a01
Small bug fix to main.c
2010-07-29 19:18:29 +00:00
sethdelliott
dd4bc0089b
Stream list is now managed by queue.h SLIST macros
2010-07-28 20:29:25 +00:00
sethdelliott
ffdcc7d457
Updated iperf_error and moved the SIGINT handler out of the library
2010-07-27 22:11:09 +00:00
sethdelliott
f99bd3b2c6
Added support for IPv6 mode (-6)
2010-07-27 20:27:34 +00:00
sethdelliott
5e0e1e974e
Exchanged gethostbyname for getaddrinfo
2010-07-27 17:32:21 +00:00
sethdelliott
a1344ede16
Added support for binding (-B) to a specific interface
2010-07-26 21:30:34 +00:00
sethdelliott
eb85608f64
Updated autoconf files
2010-07-23 23:48:45 +00:00
sethdelliott
18631aacdb
Moved client code from iperf_api.* to iperf_client_api.*
2010-07-23 22:48:48 +00:00
sethdelliott
2e3dfab7eb
Updated documentation
2010-07-23 21:39:41 +00:00
sethdelliott
4df383f6d8
Added callback functions to the iperf API
2010-07-23 20:46:58 +00:00
sethdelliott
112a907cc3
More code restructuring
2010-07-23 18:39:14 +00:00
sethdelliott
66ce7ad49d
Made the protocol implementation better. Lots of code clean up
2010-07-22 23:26:38 +00:00
sethdelliott
8a0b5a5d18
Added support for adding new protocols. Slightly modified iperf_error()
2010-07-22 18:57:08 +00:00
sethdelliott
b60a49dd37
All error handling is now handled by iperf_error. Also cleaned up some code
2010-07-20 22:27:50 +00:00
sethdelliott
3118b42010
All client side error handling is now handled by iperf_error
2010-07-20 00:03:03 +00:00
sethdelliott
01ca972b6c
Updated autoconf stuff and fixed a small error with ierror()
2010-07-19 20:38:40 +00:00
sethdelliott
8430ad49e6
Added iperf error code (iperf_error.*). Also added iperf_parse_parameters().
2010-07-19 19:45:08 +00:00
Jon Dugan
7585c69638
bump version number
2010-07-16 23:19:31 +00:00
sethdelliott
1e621fb16c
Small updates to man page and documentation.
2010-07-15 23:38:10 +00:00
sethdelliott
c81883bf08
Added support for setting the MAXSEG (MSS) and NODELAY TCP options. Setting MSS is still a little buggy.
2010-07-15 23:19:42 +00:00
sethdelliott
aa89cda29f
Added bandwidth mode (-b) support for UDP.
2010-07-15 20:05:43 +00:00
sethdelliott
86afd62bfe
UDP results are now exchanged. Made results exchange process better.
2010-07-15 17:43:25 +00:00
sethdelliott
8556db5d08
Added support for UDP mode (-b mode not yet supported). Added htonll/ntohll functions. Cleaned up code.
2010-07-14 23:24:58 +00:00
Jon Dugan
b0b16b86cc
rename uuid.[ch] to iperf_util.[ch] to avoid confusion on some platforms
2010-07-09 00:29:51 +00:00
Jon Dugan
a5d9c7f182
remove extraneous -I../include
2010-07-09 00:20:59 +00:00
Jon Dugan
1c16864715
bump version for beta release
2010-07-08 23:29:17 +00:00
Jon Dugan
e34c20c89f
update autoconf stuff
2010-07-08 23:26:52 +00:00
sethdelliott
1ac522ec39
Fixed a bug where the server died on client interrupt. Also updated README, TODO, and man page.
2010-07-08 22:41:22 +00:00
sethdelliott
2b1d7e965c
Added buffer length (-l) to parameter exchange.
2010-07-07 23:34:48 +00:00
sethdelliott
f1b3bd81f9
Quite a bit of code restructuring.
2010-07-07 21:54:24 +00:00
sethdelliott
b68ac00ee9
Some code restructuring.
2010-07-06 23:12:54 +00:00
sethdelliott
bfd0c25dba
Fixed an error when compiling on Ubuntu systems. Also fixed a small server memory leak.
2010-07-01 21:21:04 +00:00
sethdelliott
efb7bbe44b
Added support for reverse mode (-R for now).
2010-07-01 00:01:57 +00:00
sethdelliott
abfced3c26
Added parameter exchange for MSS, bytes to send, and test duration.
2010-06-30 22:32:17 +00:00
sethdelliott
af70b448ee
All communications are now on port 5201 (including streams)
2010-06-30 22:09:45 +00:00
sethdelliott
32885561a4
Server side bug fixes.
2010-06-30 19:57:17 +00:00
sethdelliott
efdc02f743
The server now runs until terminated by the user. Also fixed several memory leaks.
2010-06-30 15:58:16 +00:00
sethdelliott
181d61afab
Iperf results are now exchanged between client and server. The server also now prints results.
2010-06-29 22:02:30 +00:00
sethdelliott
43bcc9709c
Added iperf_exchange_results function.
2010-06-28 23:56:09 +00:00
sethdelliott
fd10304cbd
Updates to Nread/Nwrite in net.c
2010-06-28 22:25:03 +00:00
sethdelliott
4f43111900
Removed unused functions from the iperf api code.
2010-06-26 00:02:22 +00:00
sethdelliott
f0a7395b20
Added usage_long() to iperf_api.h.
2010-06-25 00:33:39 +00:00
sethdelliott
1c9c053c6c
Updated code to make '-s' parameter a requirement while running server. Also added usage() and usage_long() functions for printing out iperf usage messages.
2010-06-25 00:31:15 +00:00
sethdelliott
36d18d07fc
Fixed a bug that caused control message errors on different platforms.
2010-06-24 22:40:11 +00:00
sethdelliott
29e3ec74c3
Fixed a bug that caused getopt not to work properly when command line arguments are given to the server.
2010-06-24 22:02:24 +00:00
sethdelliott
59aaeda792
Updated parameter exchange to be cross platform compatible.
2010-06-24 20:42:04 +00:00
sethdelliott
7fa9f68fd5
Fixed a bug that caused an error at results display.
2010-06-23 21:34:07 +00:00
sethdelliott
873952e31c
Updated reporting to fit the new control socket design.
2010-06-23 20:28:32 +00:00
sethdelliott
465b565c50
New control socket design now works. Now working on finishing up the reporting.
2010-06-23 19:13:37 +00:00
sethdelliott
ba2672a209
Note: The redesign is almost working. Should be finished shortly.
2010-06-21 15:08:47 +00:00
sethdelliott
982c704a8a
NOTE: This is not a working revision. I'm in the process of redesigning how the client and server communicate. It will be fixed soon
2010-06-18 21:08:50 +00:00
sethdelliott
ff385f98e9
Fixed format and improved readibility of timer.c functions. Also formalized timer.h header.
2010-06-16 21:48:20 +00:00
sethdelliott
3e402adeb7
Updated reporter callback, interval report, and the tcp info report to print out its message rather than allocating memory.
2010-06-16 20:32:01 +00:00
sethdelliott
ccb086576f
Updated iperf_reporter_callback to print out its message rather than returning a pointer to it
2010-06-15 23:33:32 +00:00
sethdelliott
2d8bc019f7
Fixed client side code to be more module and follow state diagram.
2010-06-15 22:26:12 +00:00
sethdelliott
aebbe3a08f
Updated the client code to behave like the state machine for TEST_START
2010-06-14 23:49:41 +00:00
Jon Dugan
e088d2d305
move the parameter exchange into iperf_run_client() where it belongs; propogate return status
2010-02-09 07:29:13 +00:00
AaronMatthewBrown
a067fb27c2
Modify auto* scripts to handle the different uuid libraries/headers.
2009-12-10 14:20:48 +00:00
Jon Dugan
79e6f22912
remove svn:executable from locale.[ch]
2009-12-10 08:08:00 +00:00
AaronMatthewBrown
f4a3ddaae6
Add an initial autotools setup.
...
The main iperf binary is compiled, along with a static libiperf, the unit
tests, and a profiled iperf binary.
The tests, and the profiled iperf binary do not get installed.
To compile, run:
./bootstrap.sh
./configure
make
It has all the normal make options (they come mostly for free). e.g.:
You can run "make install" to install it.
You can run "make dist" which will create a distribution tarball.
You can run "make check" to run all the tests.
I backed up the existing Makefile as "src/Makefile.old" in case folks want to
use that still.
2009-12-08 21:36:24 +00:00
Jon Dugan
d768f73dce
more cleanup and rearrangement
2009-12-02 02:08:47 +00:00
Jon Dugan
27f1f3508e
move man page into src dir
2009-12-02 02:06:16 +00:00
Brian Tierney
5fa2f3b044
some cleanup, updates
2009-11-20 23:43:53 +00:00
Brian Tierney
78379b172e
more Makefile updates
2009-11-20 23:27:54 +00:00
Brian Tierney
ca3ed92e2b
better 'make dist' command (still could be better yet)
2009-11-20 23:22:44 +00:00
Brian Tierney
380c769248
fixed bug in final stats summary calculation
2009-11-20 23:13:35 +00:00
Brian Tierney
54cdc61e24
fixed bug where -T flag without -i flag caused core dump
2009-11-20 23:04:23 +00:00
Brian Tierney
6796ba135a
fixed minor issue with server stats
2009-11-20 22:38:47 +00:00
Brian Tierney
fda84f3feb
fixed bug in server side thoughput calculation
2009-11-20 22:20:10 +00:00
Brian Tierney
6146bde494
fixed stats computation
2009-11-17 18:44:01 +00:00
Brian Tierney
d033e8cefc
more valgrind-based cleanup of memory usage
2009-11-16 20:26:20 +00:00
Brian Tierney
dfb2d9d470
some memory usage cleanup based on valgrind report
2009-11-16 20:10:48 +00:00
Brian Tierney
f4e1c1d4a4
fixes for -T mode
2009-11-16 02:50:24 +00:00
Brian Tierney
01a5081d51
working on fixing TCP_INFO, in progress
2009-11-16 01:58:22 +00:00
Brian Tierney
5ed85b8fa1
a bit more cleanup
2009-11-15 17:06:16 +00:00
Brian Tierney
1882b9cb65
turned off some debug code, and fixed a bug in interval times
2009-11-15 04:47:19 +00:00
Brian Tierney
97887027e7
completely reworked stats collection/display code. Mostly working again, and much more readable.
2009-11-15 04:29:47 +00:00
Brian Tierney
b9cef2e24c
cleanup of interval_results linked list and stats_callback function. Now uses
...
a pointer to the last element so doesnt walk the list every time.
2009-11-13 20:14:06 +00:00
Brian Tierney
70866d6dc0
some fixes/cleanup for Linux
2009-11-13 19:20:52 +00:00
Brian Tierney
7d8b10f945
added version.h to svn, and other minor changes
2009-11-13 18:29:10 +00:00
Brian Tierney
9e1f731a44
better random payload code
2009-11-13 15:26:49 +00:00
Brian Tierney
c44d17d1f7
added AUTHORS fie, and more info to README
2009-11-13 13:59:07 +00:00
Brian Tierney
08dc8710e1
added -v (version option)
2009-11-10 17:05:44 +00:00
Brian Tierney
d44c04d478
fixed bug with -i mode in the server
2009-11-10 16:03:17 +00:00
Brian Tierney
5083c489af
more cleanup and bug fixes: TCP mode mostly working. Still bug in using -i on the server
2009-11-10 05:21:17 +00:00
Brian Tierney
e99faeae86
more cleanup and bug fixes
2009-11-10 04:41:42 +00:00
Brian Tierney
a3281a3dc6
parallel streams now mostly working. Still some issues with repeated connections
2009-11-06 07:25:10 +00:00
Brian Tierney
150a09e9e2
refactoring of state machine now complete! works for single stream TCP only at the moment
2009-11-06 02:19:20 +00:00
Brian Tierney
8f4e66c9d0
interrim commit: work in progress
2009-11-06 01:43:50 +00:00
Brian Tierney
8d41fbd712
more bug fixes, still needs work
2009-11-03 06:38:09 +00:00
Brian Tierney
c27f38e5be
more work on state cleanup: not yet done
2009-11-03 05:37:06 +00:00
Brian Tierney
a36921c2dd
state machine cleanup (still in progress)
2009-11-02 23:56:55 +00:00
Brian Tierney
a951c98062
lots of code restructuring
2009-11-02 22:43:19 +00:00
Brian Tierney
da54a271ad
a bit more cleanup, and determined that UDP is more broken than I thought.
2009-10-27 03:51:04 +00:00
Brian Tierney
1b85468f0c
more cleanup of TCP/UDP code
2009-10-27 03:06:56 +00:00
Brian Tierney
513fcaefe1
more better comments
2009-10-26 14:34:41 +00:00
Brian Tierney
02fed106c4
worked on receive_result_from_server, more cleanup and comments
2009-10-24 22:31:38 +00:00
Brian Tierney
9a51510ab3
more cleanup: separate file for main routine
2009-10-24 21:15:04 +00:00
Brian Tierney
146be079ba
added comment on lack of portability
2009-10-24 20:43:06 +00:00
Brian Tierney
d56546318e
add comment
2009-10-23 23:01:46 +00:00
Brian Tierney
a1eb8922d3
TCP_INFO seems to be working on FreeBSD now
2009-10-23 22:58:32 +00:00
Brian Tierney
c0c797b0eb
some cleanup for FreeBSD, and further work on TCP_INFO (not finished)
2009-10-23 22:30:17 +00:00
Brian Tierney
d842bb6c9c
some minor cleanup
2009-10-23 19:14:17 +00:00
Brian Tierney
6f5723846d
lots more cleanup. Seems to work for single stream TCP now. UDP broke. Parallel TCP not tested
2009-10-23 01:30:55 +00:00
Brian Tierney
a725333452
more cleanup; TCP works again now, lots of debug messages still in there
2009-10-22 20:12:57 +00:00
Brian Tierney
c00858d228
added Nread and Nwrite routines, as alternatives to recv
2009-10-22 20:12:27 +00:00
Brian Tierney
657083f27f
more cleanup, lots of comments/questions/debug code added, currently broken
2009-10-20 16:56:02 +00:00
Brian Tierney
371c23d833
now compiles on FreeBSD, and fixed -h option
2009-10-20 03:33:50 +00:00
Brian Tierney
b25e5235cb
updates/bug fixes (still not done)
2009-10-20 00:07:42 +00:00
Brian Tierney
540d2ae4c2
starting adding TCP_INFO stuff. Not yet tested or finished
2009-10-19 23:44:36 +00:00
Brian Tierney
e434aab6a2
code cleanup: used 'indent' to enforce consistant style
2009-10-19 22:35:18 +00:00
kaustubhprabhu
2d62ee81b2
removed extra log prints
2009-08-13 23:16:06 +00:00
kaustubhprabhu
702c882fe2
added support for abrupt termination Ctrl+c
2009-08-10 21:57:52 +00:00
kaustubhprabhu
27a5c9f3ec
changed TCP payload buffer assignment
2009-08-08 00:37:28 +00:00
kaustubhprabhu
aadd324191
corrected interval [sum] bandwidth
2009-08-06 21:22:44 +00:00
kaustubhprabhu
f2eccde89e
changed tcp payload to normal for performance improvement
2009-08-06 21:00:03 +00:00
kaustubhprabhu
7ec1259bd7
added setpriority to increase the priority of execution
2009-08-06 20:29:22 +00:00
kaustubhprabhu
7e97b90df5
replaced malloc()for buffer in send() with sp->buffer in stream
2009-08-06 20:26:59 +00:00
kaustubhprabhu
b359357773
changed default window size assignment in iperf_init_test()
2009-08-03 22:20:45 +00:00
kaustubhprabhu
4cb629896a
changed recv window assignment, added non-blocking sockets on server side
2009-08-03 20:14:08 +00:00
kaustubhprabhu
c434311b0d
changed default port assignment in main()
2009-07-29 21:16:52 +00:00
kaustubhprabhu
675aadd72a
simplified main()
2009-07-29 00:30:52 +00:00
kaustubhprabhu
c5038eea0a
disabled timer for -n option
2009-07-28 20:21:30 +00:00
kaustubhprabhu
5212846ff4
added -n option for bytes to be sent, added function headers in iperf_api.h
2009-07-28 18:39:18 +00:00
kaustubhprabhu
62aab8d53d
corrected blksize in result exchange messages, removed unncessary conditions in reporter callback
2009-07-27 23:01:31 +00:00
kaustubhprabhu
d47cf1d204
added cookie in all state messages, changed tcp payload, changed receive_result_from_server
2009-07-27 22:05:49 +00:00
Jon Dugan
6f6716aed1
rework iperf_run using switch statement; add missing break from arg processing
2009-07-24 21:30:17 +00:00
Jon Dugan
a28983bbe1
fix linux compilation (needed -luuid); linux doesn't define FD_COPY, use memcpy instaed; formatting fixes
2009-07-24 21:06:16 +00:00
Jon Dugan
a613b6a3b6
fix formatting
2009-07-24 21:01:48 +00:00
kaustubhprabhu
40a1df10c1
changed cookie as a string in struct iperf_setting, param_exchange and in Param_exchange message
2009-07-24 18:21:50 +00:00
Jon Dugan
aa3ad76730
rework uuids; rework Makefile
2009-07-23 18:22:24 +00:00
kaustubhprabhu
e7c1d33fce
added uuid related functions, added macros for compilation on FreeBSD
2009-07-23 00:34:57 +00:00
kaustubhprabhu
89fe565493
added PARAM_Exchange messages and cookies to prevent test collisions
2009-07-21 23:28:18 +00:00
Jon Dugan
7b63081921
client select was reusing fd_set; use FD_COPY to copy fd_sets
2009-07-21 20:16:09 +00:00
Jon Dugan
955db52cda
always report bytes transferred in units of bytes, data rates still use the -f option
2009-07-21 19:00:54 +00:00
kaustubhprabhu
8bc20ef280
added iperf_free_test() and changed server side code in main()
2009-07-20 19:13:08 +00:00
kaustubhprabhu
cbd16a325f
bug fix:name resolution issue, TCP reception corrected by adding MSG_WAITALL flag in recv function
2009-07-16 23:17:05 +00:00
kaustubhprabhu
254a65cf73
regular EOD backup, TCP/UDP payload converted to network address format by client
2009-07-16 00:45:24 +00:00
kaustubhprabhu
04b7ffa70f
changed TCP Payload assignment, added a sleep() betweeen ALL_STREAM_END and RESULT_REQUEST message to ensure server gets both messages
2009-07-15 01:00:27 +00:00
kaustubhprabhu
3023ce6ec5
corrected interval byte count mismatch, corrected out of order packet count
2009-07-13 21:50:08 +00:00
kaustubhprabhu
fea54f51f7
omitted STREAM_BEGIN message from bytes calculation
2009-07-13 18:44:18 +00:00
kaustubhprabhu
48b0f1a334
added lost UDP packet count, added timeval struct for intervals measurement
2009-07-11 00:09:23 +00:00
kaustubhprabhu
f4ca73a1b1
added udp jitter/packet count calculation
2009-07-09 23:44:05 +00:00
kaustubhprabhu
71a7ccf6d3
minor changes and packet payloads changed
2009-07-08 22:57:43 +00:00
kaustubhprabhu
6b65cf6e25
removed memory leaks from reporter callback
2009-07-08 00:44:00 +00:00
kaustubhprabhu
515e2f6e2c
added listener socket for UDP. This allows server to listen for TCP/UDP on same port
2009-07-07 00:37:47 +00:00
kaustubhprabhu
a428063b8b
simplified reporter callback by removing conditional assignments
2009-07-06 21:29:23 +00:00
kaustubhprabhu
7dd1f0cd55
modified reporter callback for floating point errors
2009-07-06 18:37:21 +00:00
kaustubhprabhu
c6ffef11b4
implemented UDP-timer changes , o/p format changes
2009-07-02 01:07:32 +00:00
kaustubhprabhu
8b44cd5a88
implemented code review changes - r100/101, added a check on failure to receive STREAM_END message
2009-06-30 23:41:23 +00:00
kaustubhprabhu
6044ffd6f5
changed reporter callback for udp display, code review comments -99/100
2009-06-30 00:42:33 +00:00
kaustubhprabhu
81a2df59df
changed timer_expired function call
2009-06-29 19:30:39 +00:00
kaustubhprabhu
e1634906f1
corrected interval statics calculation
2009-06-29 18:20:40 +00:00
kaustubhprabhu
b406b735e8
added interval_results to linked list
2009-06-27 00:34:38 +00:00
kaustubhprabhu
5ebed4362f
added locale.h for standard o/p formats
2009-06-26 01:00:45 +00:00
kaustubhprabhu
5f0a15f96f
changed format of reports to default iperf format, added timer functions, added local.h for standard o/p formats
2009-06-26 00:55:56 +00:00
kaustubhprabhu
b890e75d5e
added ALL_STREAMS_END message from client to server, changed message communication code for TCP
2009-06-25 19:40:48 +00:00
kaustubhprabhu
368cc7bc7c
Corrected message communication memory leak, added result exchange messages for TCP
2009-06-25 00:59:56 +00:00
kaustubhprabhu
16975b3bba
added messege communication betweenn client and serverin iperf_api.c, moved state to iperf_settings in iperf_api.h
2009-06-24 00:52:45 +00:00
kaustubhprabhu
d7f56e1528
Changed iperf_udp_send() function : added timer and timer delay calcualation
2009-06-23 00:11:18 +00:00
kaustubhprabhu
aa9ca2689b
added function- timer_expired_micro() for timer expiry in microseconds
2009-06-23 00:07:36 +00:00
kaustubhprabhu
6162535684
implemented options -m, -M, -N, -f for command line arguements
2009-06-19 22:35:42 +00:00
kaustubhprabhu
ff4f2d4430
implemented changes in reporter_callback functionality
2009-06-19 00:05:29 +00:00
Jon Dugan
bc3211eea3
moved constants and #define from iperf_api.c to iperf_api.h
2009-06-18 02:40:48 +00:00
Jon Dugan
7b1bded36e
significant changes to the iperf structures:
...
iperf_stream_result now uses two struct timeval's instead of a duration
bufsize in iperf_settings is now blksize
iperf_test no longer has remote_addr and local_addr
iperf_test now uses server_hostname to hold the server name
listener_port in iperf_test has been renamed server_port
custom_data in iperf_stream_result is now data (opaque data)
added an opaque data memeber to iperf_stream, named data
updates to iperf_api.c from the name changes
this simplifies the run client code because we don't have to do so much
footwork for netdial
the calculation for the throughput currently uses test->duration rather than
the difference of the stream_results timevals.
2009-06-18 02:39:13 +00:00
Jon Dugan
4f54b8f91b
reformat comments after tab normalization
2009-06-18 02:32:12 +00:00
Jon Dugan
1276da5bdf
normalize tabs to 4 spaces
2009-06-18 01:49:38 +00:00
Jon Dugan
e1558c20ad
update Makefile to work with iperf_api.c
2009-06-18 01:49:18 +00:00
kaustubhprabhu
12c37dca2f
implemented -p (protocol) related changes, added connect_msg() function
2009-06-18 00:07:55 +00:00
kaustubhprabhu
07222cef2f
implmented code review changes and stats_callback, reporter_callback functions
2009-06-17 00:01:32 +00:00
kaustubhprabhu
d70a792d6c
implemented code review changes from r81 -r87
2009-06-16 18:59:50 +00:00
kaustubhprabhu
c5826da269
added basic stats_callback for -i option
2009-06-16 00:57:29 +00:00
kaustubhprabhu
f05558b01d
added function iperf_free_stream() with appropriate contents, changed few references
2009-06-15 23:57:43 +00:00
kaustubhprabhu
ba492bef36
added new field listener_port in iperf_api.h, changed udp_Accept() port assignment in iperf_api.c
2009-06-15 19:43:52 +00:00
kaustubhprabhu
d1dc4db8c2
corrected recv error check condition in server, added Display() function for debug purpose
2009-06-15 17:53:09 +00:00
kaustubhprabhu
116e8bcbcf
added iperf_run_client, iperf_tcp_send, iperf_udp_Send and client side changes in iperf_init_test
2009-06-12 22:23:05 +00:00
kaustubhprabhu
2d4dec84ad
corrected UDP accept part in iperf_udp_accept
2009-06-12 19:04:37 +00:00
kaustubhprabhu
3a96746bc2
added the tcp window related checks on server side
2009-06-12 00:03:12 +00:00
kaustubhprabhu
24b42564ea
changed TCP/UDP server code in accordance with Jon's last commit
2009-06-11 22:18:19 +00:00
Jon Dugan
930b564653
add new_stream and accept callbacks to iperf_test
...
remove init callback from iperf_stream
rework client initialization to take advantage of new_stream callback
2009-06-11 06:55:00 +00:00
Jon Dugan
c2b87ef8d9
rename functions with _create_ to _new_
...
rename functions with _destroy_ to _free_
collapse settings into a single struct for simplicity
rework iperf_new_udp_stream, iperf_new_tcp_stream
2009-06-11 06:36:53 +00:00
kaustubhprabhu
c6f24137f1
changed newlty created APIs for Server side
2009-06-11 01:18:18 +00:00
kaustubhprabhu
6c6757c6f8
Added more APIs for iperf_api.c and changed main.c for comments and log
2009-06-10 00:23:21 +00:00
kaustubhprabhu
061af7d9aa
created new iperf_api.c with functions defined in iperf_api.h
2009-06-09 00:03:37 +00:00
kaustubhprabhu
b085d6d102
created new iperf_api.c with functions defined in iperf_api.h
2009-06-09 00:00:30 +00:00
kaustubhprabhu
9f62884d32
Split Server function in TCP/UDP related functions
2009-06-05 22:00:10 +00:00
kaustubhprabhu
5633640e37
Updated Client side code with Select
2009-06-03 21:04:32 +00:00
kaustubhprabhu
db1760105f
changed the linked list functions
2009-06-02 22:06:49 +00:00
kaustubhprabhu
beec2717ab
changed the linked list functions
2009-06-02 21:26:58 +00:00
kaustubhprabhu
4bd06c53f0
changed code for Select API
2009-06-02 01:13:26 +00:00
Jon Dugan
ff5411c68d
initial whack at iperf API -- still rough
2009-05-30 01:21:44 +00:00
Jon Dugan
56cb7ca790
pass settings rather than using a global
2009-02-24 09:44:14 +00:00
Jon Dugan
bc495fb9f7
fix UNIT_LEN
...
tweak format in unit_snprintf
2009-02-24 09:43:27 +00:00
Jon Dugan
e92877004e
add unit conversion and formatting from old code. remove hungarian gobbledeygook
2009-02-24 08:05:14 +00:00
Jon Dugan
d18ce8e918
bring over old unit converting functions
2009-02-24 06:25:08 +00:00
Jon Dugan
0fdaab072e
initial commit of new code
2009-02-24 06:22:58 +00:00
Jon Dugan
38e1acb706
move old source out of the way, we'll cherry pick some stuff back
2009-02-24 06:19:03 +00:00
Jon Dugan
b99858c29e
move windows service cruft into service.c
2009-01-24 10:52:31 +00:00
Jon Dugan
bd8c92d8f6
merged Gerrit's nanosleep patch
...
tweaked type of currLen as fixup for Nathan's patch
2008-05-10 03:18:35 +00:00
Jon Dugan
0c9092408e
added patch to address underflow when -n is not a multiple of -l
...
from Nathan Jones: https://sourceforge.net/tracker/index.php?func=detail&aid=1943432&group_id=128336&atid=711373
2008-05-10 02:26:48 +00:00