From 7d8b10f9451fd2925b5d3a4fb80eb073c60da357 Mon Sep 17 00:00:00 2001 From: Brian Tierney Date: Fri, 13 Nov 2009 18:29:10 +0000 Subject: [PATCH] added version.h to svn, and other minor changes --- src/TODO.txt | 2 ++ src/locale.c | 1 + src/main.c | 5 +++++ src/version.h | 2 ++ 4 files changed, 10 insertions(+) create mode 100644 src/version.h diff --git a/src/TODO.txt b/src/TODO.txt index 29ad6d4..f9f92ca 100644 --- a/src/TODO.txt +++ b/src/TODO.txt @@ -9,6 +9,8 @@ Current list of things to fix/add to iperf 3.0 - better packaging/makefile, README, LICENCE, etc files - currently several places in the code where a linked list must be scanned to find the end. It would be better to store a pointer to the last element. +- reedd -Z option (linux tcp congestion control algoritm) +- readd flog to set IP_TOS (-S) - finish/fix receive_result_from_server() - should this be called for TCP too, or only UDP (currently its both, but I think it should be UDP only, or maybe a command line option for TCP diff --git a/src/locale.c b/src/locale.c index 4cd14c0..2ed8e14 100755 --- a/src/locale.c +++ b/src/locale.c @@ -86,6 +86,7 @@ Server specific:\n\ ; #ifdef NOT_YET_SUPPORTED /* still working on these */ + -S, --tos N set IP 'Type of Service' bit \n\ -Z, --linux-congestion set TCP congestion control algorithm (Linux only)\n\ -6, --IPv6Version Set the domain to IPv6\n\ diff --git a/src/main.c b/src/main.c index 2b87464..8de920f 100644 --- a/src/main.c +++ b/src/main.c @@ -51,6 +51,11 @@ static struct option longopts[] = {"Set-mss", required_argument, NULL, 'M'}, {"version", no_argument, NULL, 'v'}, {"help", no_argument, NULL, 'h'}, +#ifdef ADD_WHEN_SUPPORTED + {"tos", required_argument, NULL, 'S'}, + {"linux-congestion", required_argument, NULL, 'Z'}, + {"daemon", no_argument, NULL, 'D'}, +#endif {NULL, 0, NULL, 0} }; diff --git a/src/version.h b/src/version.h new file mode 100644 index 0000000..5658dab --- /dev/null +++ b/src/version.h @@ -0,0 +1,2 @@ +#define IPERF_VERSION "3.0-ALPHA" +#define IPERF_VERSION_DATE "10 Nov 2009"