Commit Graph

135 Commits

Author SHA1 Message Date
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
Jon Dugan
2c094e1e14 print report headers only once
use correct report header for UDP tests
2008-04-09 00:08:11 +00:00
Jon Dugan
1e12002c82 worked in Claus Klein's help string patches
removed silly #error from the congestion patch
preliminary manpage (!)
bumped version number to 2.0.4
changed email address to iperf-users@lists.sourceforge.net
removed duplicate help strings
2008-04-02 08:25:36 +00:00
Jon Dugan
62bb2588af Stephen Hemminger's congestion control patch for Linux 2008-03-19 22:23:26 +00:00
Jon Dugan
4ca10dd877 Rework Client::RunTCP so to update the stats for every packet if -i is set.
If -i is not set then the stats are only updated at the end of the run. This
was fallout of Andrew's patch.
2008-03-12 21:55:22 +00:00
Jon Dugan
1efd8f8c50 2008-03-12 Jon Dugan <jdugan@x1024.net>
* Added -Wall to CXXFLAGS and CFLAGS.  This generated a lot of noise in the
autotools generated files.

* Added initial AUTHORS file.  This is incomplete, but it's a start.

2008-03-12 Andrew Gallatin <gallatin@gmail.com>

* Rework threading.  This is done by having a condition variable for the reporting
thread rather than using sched_yield and/or usleep.

* Address performance issues on non Linux systems by avoiding system calls
which are expensive on platforms other than Linux.

* Fixes from FreeBSD ports: max_size_t is now 64 bits and not Iperf does not
exit on ENOBUFS.
2008-03-12 20:28:21 +00:00
Jon Dugan
d9bae63405 import Iperf 2.0.2 release 2007-08-29 22:07:15 +00:00
Jon Dugan
ea532f4f4b update to Iperf 2.0.1 2007-08-29 22:02:04 +00:00
Jon Dugan
aa594bbb79 import of iperf-2.0 release 2007-08-29 21:57:27 +00:00