xref: /aosp_15_r20/external/iperf3/src/iperf_locale.c (revision 7ab6e6ace082586527a400463bc693a412a40341)
1*7ab6e6acSAndroid Build Coastguard Worker /*---------------------------------------------------------------
2*7ab6e6acSAndroid Build Coastguard Worker  * iperf, Copyright (c) 2014-2020, The Regents of the University of
3*7ab6e6acSAndroid Build Coastguard Worker  * California, through Lawrence Berkeley National Laboratory (subject
4*7ab6e6acSAndroid Build Coastguard Worker  * to receipt of any required approvals from the U.S. Dept. of
5*7ab6e6acSAndroid Build Coastguard Worker  * Energy).  All rights reserved.
6*7ab6e6acSAndroid Build Coastguard Worker  *
7*7ab6e6acSAndroid Build Coastguard Worker  * If you have questions about your rights to use or distribute this
8*7ab6e6acSAndroid Build Coastguard Worker  * software, please contact Berkeley Lab's Technology Transfer
9*7ab6e6acSAndroid Build Coastguard Worker  * Department at [email protected].
10*7ab6e6acSAndroid Build Coastguard Worker  *
11*7ab6e6acSAndroid Build Coastguard Worker  * NOTICE.  This software is owned by the U.S. Department of Energy.
12*7ab6e6acSAndroid Build Coastguard Worker  * As such, the U.S. Government has been granted for itself and others
13*7ab6e6acSAndroid Build Coastguard Worker  * acting on its behalf a paid-up, nonexclusive, irrevocable,
14*7ab6e6acSAndroid Build Coastguard Worker  * worldwide license in the Software to reproduce, prepare derivative
15*7ab6e6acSAndroid Build Coastguard Worker  * works, and perform publicly and display publicly.  Beginning five
16*7ab6e6acSAndroid Build Coastguard Worker  * (5) years after the date permission to assert copyright is obtained
17*7ab6e6acSAndroid Build Coastguard Worker  * from the U.S. Department of Energy, and subject to any subsequent
18*7ab6e6acSAndroid Build Coastguard Worker  * five (5) year renewals, the U.S. Government is granted for itself
19*7ab6e6acSAndroid Build Coastguard Worker  * and others acting on its behalf a paid-up, nonexclusive,
20*7ab6e6acSAndroid Build Coastguard Worker  * irrevocable, worldwide license in the Software to reproduce,
21*7ab6e6acSAndroid Build Coastguard Worker  * prepare derivative works, distribute copies to the public, perform
22*7ab6e6acSAndroid Build Coastguard Worker  * publicly and display publicly, and to permit others to do so.
23*7ab6e6acSAndroid Build Coastguard Worker  *
24*7ab6e6acSAndroid Build Coastguard Worker  * This code is distributed under a BSD style license, see the LICENSE
25*7ab6e6acSAndroid Build Coastguard Worker  * file for complete information.
26*7ab6e6acSAndroid Build Coastguard Worker  *
27*7ab6e6acSAndroid Build Coastguard Worker  * Based on code that is:
28*7ab6e6acSAndroid Build Coastguard Worker  *
29*7ab6e6acSAndroid Build Coastguard Worker  * Copyright (c) 1999,2000,2001,2002,2003
30*7ab6e6acSAndroid Build Coastguard Worker  * The Board of Trustees of the University of Illinois
31*7ab6e6acSAndroid Build Coastguard Worker  * All Rights Reserved.
32*7ab6e6acSAndroid Build Coastguard Worker  *---------------------------------------------------------------
33*7ab6e6acSAndroid Build Coastguard Worker  * Permission is hereby granted, free of charge, to any person
34*7ab6e6acSAndroid Build Coastguard Worker  * obtaining a copy of this software (Iperf) and associated
35*7ab6e6acSAndroid Build Coastguard Worker  * documentation files (the "Software"), to deal in the Software
36*7ab6e6acSAndroid Build Coastguard Worker  * without restriction, including without limitation the
37*7ab6e6acSAndroid Build Coastguard Worker  * rights to use, copy, modify, merge, publish, distribute,
38*7ab6e6acSAndroid Build Coastguard Worker  * sublicense, and/or sell copies of the Software, and to permit
39*7ab6e6acSAndroid Build Coastguard Worker  * persons to whom the Software is furnished to do
40*7ab6e6acSAndroid Build Coastguard Worker  * so, subject to the following conditions:
41*7ab6e6acSAndroid Build Coastguard Worker  *
42*7ab6e6acSAndroid Build Coastguard Worker  *
43*7ab6e6acSAndroid Build Coastguard Worker  * Redistributions of source code must retain the above
44*7ab6e6acSAndroid Build Coastguard Worker  * copyright notice, this list of conditions and
45*7ab6e6acSAndroid Build Coastguard Worker  * the following disclaimers.
46*7ab6e6acSAndroid Build Coastguard Worker  *
47*7ab6e6acSAndroid Build Coastguard Worker  *
48*7ab6e6acSAndroid Build Coastguard Worker  * Redistributions in binary form must reproduce the above
49*7ab6e6acSAndroid Build Coastguard Worker  * copyright notice, this list of conditions and the following
50*7ab6e6acSAndroid Build Coastguard Worker  * disclaimers in the documentation and/or other materials
51*7ab6e6acSAndroid Build Coastguard Worker  * provided with the distribution.
52*7ab6e6acSAndroid Build Coastguard Worker  *
53*7ab6e6acSAndroid Build Coastguard Worker  *
54*7ab6e6acSAndroid Build Coastguard Worker  * Neither the names of the University of Illinois, NCSA,
55*7ab6e6acSAndroid Build Coastguard Worker  * nor the names of its contributors may be used to endorse
56*7ab6e6acSAndroid Build Coastguard Worker  * or promote products derived from this Software without
57*7ab6e6acSAndroid Build Coastguard Worker  * specific prior written permission.
58*7ab6e6acSAndroid Build Coastguard Worker  *
59*7ab6e6acSAndroid Build Coastguard Worker  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
60*7ab6e6acSAndroid Build Coastguard Worker  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
61*7ab6e6acSAndroid Build Coastguard Worker  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
62*7ab6e6acSAndroid Build Coastguard Worker  * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTIBUTORS OR COPYRIGHT
63*7ab6e6acSAndroid Build Coastguard Worker  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
64*7ab6e6acSAndroid Build Coastguard Worker  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
65*7ab6e6acSAndroid Build Coastguard Worker  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE
66*7ab6e6acSAndroid Build Coastguard Worker  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
67*7ab6e6acSAndroid Build Coastguard Worker  * ________________________________________________________________
68*7ab6e6acSAndroid Build Coastguard Worker  * National Laboratory for Applied Network Research
69*7ab6e6acSAndroid Build Coastguard Worker  * National Center for Supercomputing Applications
70*7ab6e6acSAndroid Build Coastguard Worker  * University of Illinois at Urbana-Champaign
71*7ab6e6acSAndroid Build Coastguard Worker  * http://www.ncsa.uiuc.edu
72*7ab6e6acSAndroid Build Coastguard Worker  * ________________________________________________________________
73*7ab6e6acSAndroid Build Coastguard Worker  *
74*7ab6e6acSAndroid Build Coastguard Worker  * Locale.c
75*7ab6e6acSAndroid Build Coastguard Worker  * by Ajay Tirumala <[email protected]>
76*7ab6e6acSAndroid Build Coastguard Worker  * & Mark Gates <[email protected]>
77*7ab6e6acSAndroid Build Coastguard Worker  * -------------------------------------------------------------------
78*7ab6e6acSAndroid Build Coastguard Worker  * Strings and other stuff that is locale specific.
79*7ab6e6acSAndroid Build Coastguard Worker  * ------------------------------------------------------------------- */
80*7ab6e6acSAndroid Build Coastguard Worker #include "iperf_config.h"
81*7ab6e6acSAndroid Build Coastguard Worker 
82*7ab6e6acSAndroid Build Coastguard Worker #include "version.h"
83*7ab6e6acSAndroid Build Coastguard Worker 
84*7ab6e6acSAndroid Build Coastguard Worker #ifdef __cplusplus
85*7ab6e6acSAndroid Build Coastguard Worker extern    "C"
86*7ab6e6acSAndroid Build Coastguard Worker {
87*7ab6e6acSAndroid Build Coastguard Worker #endif
88*7ab6e6acSAndroid Build Coastguard Worker 
89*7ab6e6acSAndroid Build Coastguard Worker 
90*7ab6e6acSAndroid Build Coastguard Worker /* -------------------------------------------------------------------
91*7ab6e6acSAndroid Build Coastguard Worker  * usage
92*7ab6e6acSAndroid Build Coastguard Worker  * ------------------------------------------------------------------- */
93*7ab6e6acSAndroid Build Coastguard Worker 
94*7ab6e6acSAndroid Build Coastguard Worker const char usage_shortstr[] = "Usage: iperf3 [-s|-c host] [options]\n"
95*7ab6e6acSAndroid Build Coastguard Worker                            "Try `iperf3 --help' for more information.\n";
96*7ab6e6acSAndroid Build Coastguard Worker 
97*7ab6e6acSAndroid Build Coastguard Worker const char usage_longstr[] = "Usage: iperf3 [-s|-c host] [options]\n"
98*7ab6e6acSAndroid Build Coastguard Worker                            "       iperf3 [-h|--help] [-v|--version]\n\n"
99*7ab6e6acSAndroid Build Coastguard Worker                            "Server or Client:\n"
100*7ab6e6acSAndroid Build Coastguard Worker                            "  -p, --port      #         server port to listen on/connect to\n"
101*7ab6e6acSAndroid Build Coastguard Worker                            "  -f, --format   [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits\n"
102*7ab6e6acSAndroid Build Coastguard Worker                            "  -i, --interval  #         seconds between periodic throughput reports\n"
103*7ab6e6acSAndroid Build Coastguard Worker                            "  -F, --file name           xmit/recv the specified file\n"
104*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_CPU_AFFINITY)
105*7ab6e6acSAndroid Build Coastguard Worker                            "  -A, --affinity n/n,m      set CPU affinity\n"
106*7ab6e6acSAndroid Build Coastguard Worker #endif /* HAVE_CPU_AFFINITY */
107*7ab6e6acSAndroid Build Coastguard Worker                            "  -B, --bind      <host>    bind to the interface associated with the address <host>\n"
108*7ab6e6acSAndroid Build Coastguard Worker                            "  -V, --verbose             more detailed output\n"
109*7ab6e6acSAndroid Build Coastguard Worker                            "  -J, --json                output in JSON format\n"
110*7ab6e6acSAndroid Build Coastguard Worker                            "  --logfile f               send output to a log file\n"
111*7ab6e6acSAndroid Build Coastguard Worker                            "  --forceflush              force flushing output at every interval\n"
112*7ab6e6acSAndroid Build Coastguard Worker                            "  --timestamps    <format>  emit a timestamp at the start of each output line\n"
113*7ab6e6acSAndroid Build Coastguard Worker                            "                            (using optional format string as per strftime(3))\n"
114*7ab6e6acSAndroid Build Coastguard Worker 
115*7ab6e6acSAndroid Build Coastguard Worker                            "  -d, --debug               emit debugging output\n"
116*7ab6e6acSAndroid Build Coastguard Worker                            "  -v, --version             show version information and quit\n"
117*7ab6e6acSAndroid Build Coastguard Worker                            "  -h, --help                show this message and quit\n"
118*7ab6e6acSAndroid Build Coastguard Worker                            "Server specific:\n"
119*7ab6e6acSAndroid Build Coastguard Worker                            "  -s, --server              run in server mode\n"
120*7ab6e6acSAndroid Build Coastguard Worker                            "  -D, --daemon              run the server as a daemon\n"
121*7ab6e6acSAndroid Build Coastguard Worker                            "  -I, --pidfile file        write PID file\n"
122*7ab6e6acSAndroid Build Coastguard Worker                            "  -1, --one-off             handle one client connection then exit\n"
123*7ab6e6acSAndroid Build Coastguard Worker 			   "  --server-bitrate-limit #[KMG][/#]   server's total bit rate limit (default 0 = no limit)\n"
124*7ab6e6acSAndroid Build Coastguard Worker 			   "                            (optional slash and number of secs interval for averaging\n"
125*7ab6e6acSAndroid Build Coastguard Worker 			   "                            total data rate.  Default is 5 seconds)\n"
126*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_SSL)
127*7ab6e6acSAndroid Build Coastguard Worker                            "  --rsa-private-key-path    path to the RSA private key used to decrypt\n"
128*7ab6e6acSAndroid Build Coastguard Worker 			   "                            authentication credentials\n"
129*7ab6e6acSAndroid Build Coastguard Worker                            "  --authorized-users-path   path to the configuration file containing user\n"
130*7ab6e6acSAndroid Build Coastguard Worker                            "                            credentials\n"
131*7ab6e6acSAndroid Build Coastguard Worker #endif //HAVE_SSL
132*7ab6e6acSAndroid Build Coastguard Worker                            "Client specific:\n"
133*7ab6e6acSAndroid Build Coastguard Worker                            "  -c, --client    <host>    run in client mode, connecting to <host>\n"
134*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_SCTP_H)
135*7ab6e6acSAndroid Build Coastguard Worker                            "  --sctp                    use SCTP rather than TCP\n"
136*7ab6e6acSAndroid Build Coastguard Worker                            "  -X, --xbind <name>        bind SCTP association to links\n"
137*7ab6e6acSAndroid Build Coastguard Worker                            "  --nstreams      #         number of SCTP streams\n"
138*7ab6e6acSAndroid Build Coastguard Worker #endif /* HAVE_SCTP_H */
139*7ab6e6acSAndroid Build Coastguard Worker                            "  -u, --udp                 use UDP rather than TCP\n"
140*7ab6e6acSAndroid Build Coastguard Worker                            "  --connect-timeout #       timeout for control connection setup (ms)\n"
141*7ab6e6acSAndroid Build Coastguard Worker                            "  -b, --bitrate #[KMG][/#]  target bitrate in bits/sec (0 for unlimited)\n"
142*7ab6e6acSAndroid Build Coastguard Worker                            "                            (default %d Mbit/sec for UDP, unlimited for TCP)\n"
143*7ab6e6acSAndroid Build Coastguard Worker                            "                            (optional slash and packet count for burst mode)\n"
144*7ab6e6acSAndroid Build Coastguard Worker 			   "  --pacing-timer #[KMG]     set the timing for pacing, in microseconds (default 1000)\n"
145*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_SO_MAX_PACING_RATE)
146*7ab6e6acSAndroid Build Coastguard Worker                            "  --fq-rate #[KMG]          enable fair-queuing based socket pacing in\n"
147*7ab6e6acSAndroid Build Coastguard Worker 			   "                            bits/sec (Linux only)\n"
148*7ab6e6acSAndroid Build Coastguard Worker #endif
149*7ab6e6acSAndroid Build Coastguard Worker                            "  -t, --time      #         time in seconds to transmit for (default %d secs)\n"
150*7ab6e6acSAndroid Build Coastguard Worker                            "  -n, --bytes     #[KMG]    number of bytes to transmit (instead of -t)\n"
151*7ab6e6acSAndroid Build Coastguard Worker                            "  -k, --blockcount #[KMG]   number of blocks (packets) to transmit (instead of -t or -n)\n"
152*7ab6e6acSAndroid Build Coastguard Worker                            "  -l, --length    #[KMG]    length of buffer to read or write\n"
153*7ab6e6acSAndroid Build Coastguard Worker 			   "                            (default %d KB for TCP, dynamic or %d for UDP)\n"
154*7ab6e6acSAndroid Build Coastguard Worker                            "  --cport         <port>    bind to a specific client port (TCP and UDP, default: ephemeral port)\n"
155*7ab6e6acSAndroid Build Coastguard Worker                            "  -P, --parallel  #         number of parallel client streams to run\n"
156*7ab6e6acSAndroid Build Coastguard Worker                            "  -R, --reverse             run in reverse mode (server sends, client receives)\n"
157*7ab6e6acSAndroid Build Coastguard Worker                            "  --bidir                   run in bidirectional mode.\n"
158*7ab6e6acSAndroid Build Coastguard Worker                            "                            Client and server send and receive data.\n"
159*7ab6e6acSAndroid Build Coastguard Worker                            "  -w, --window    #[KMG]    set window size / socket buffer size\n"
160*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_TCP_CONGESTION)
161*7ab6e6acSAndroid Build Coastguard Worker                            "  -C, --congestion <algo>   set TCP congestion control algorithm (Linux and FreeBSD only)\n"
162*7ab6e6acSAndroid Build Coastguard Worker #endif /* HAVE_TCP_CONGESTION */
163*7ab6e6acSAndroid Build Coastguard Worker                            "  -M, --set-mss   #         set TCP/SCTP maximum segment size (MTU - 40 bytes)\n"
164*7ab6e6acSAndroid Build Coastguard Worker                            "  -N, --no-delay            set TCP/SCTP no delay, disabling Nagle's Algorithm\n"
165*7ab6e6acSAndroid Build Coastguard Worker                            "  -4, --version4            only use IPv4\n"
166*7ab6e6acSAndroid Build Coastguard Worker                            "  -6, --version6            only use IPv6\n"
167*7ab6e6acSAndroid Build Coastguard Worker                            "  -S, --tos N               set the IP type of service, 0-255.\n"
168*7ab6e6acSAndroid Build Coastguard Worker                            "                            The usual prefixes for octal and hex can be used,\n"
169*7ab6e6acSAndroid Build Coastguard Worker                            "                            i.e. 52, 064 and 0x34 all specify the same value.\n"
170*7ab6e6acSAndroid Build Coastguard Worker 
171*7ab6e6acSAndroid Build Coastguard Worker                            "  --dscp N or --dscp val    set the IP dscp value, either 0-63 or symbolic.\n"
172*7ab6e6acSAndroid Build Coastguard Worker                            "                            Numeric values can be specified in decimal,\n"
173*7ab6e6acSAndroid Build Coastguard Worker                            "                            octal and hex (see --tos above).\n"
174*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_FLOWLABEL)
175*7ab6e6acSAndroid Build Coastguard Worker                            "  -L, --flowlabel N         set the IPv6 flow label (only supported on Linux)\n"
176*7ab6e6acSAndroid Build Coastguard Worker #endif /* HAVE_FLOWLABEL */
177*7ab6e6acSAndroid Build Coastguard Worker                            "  -Z, --zerocopy            use a 'zero copy' method of sending data\n"
178*7ab6e6acSAndroid Build Coastguard Worker                            "  -O, --omit N              omit the first n seconds\n"
179*7ab6e6acSAndroid Build Coastguard Worker                            "  -T, --title str           prefix every output line with this string\n"
180*7ab6e6acSAndroid Build Coastguard Worker                            "  --extra-data str          data string to include in client and server JSON\n"
181*7ab6e6acSAndroid Build Coastguard Worker                            "  --get-server-output       get results from server\n"
182*7ab6e6acSAndroid Build Coastguard Worker                            "  --udp-counters-64bit      use 64-bit counters in UDP test packets\n"
183*7ab6e6acSAndroid Build Coastguard Worker                            "  --repeating-payload       use repeating pattern in payload, instead of\n"
184*7ab6e6acSAndroid Build Coastguard Worker                            "                            randomized payload (like in iperf2)\n"
185*7ab6e6acSAndroid Build Coastguard Worker #if defined(HAVE_SSL)
186*7ab6e6acSAndroid Build Coastguard Worker                            "  --username                username for authentication\n"
187*7ab6e6acSAndroid Build Coastguard Worker                            "  --rsa-public-key-path     path to the RSA public key used to encrypt\n"
188*7ab6e6acSAndroid Build Coastguard Worker                            "                            authentication credentials\n"
189*7ab6e6acSAndroid Build Coastguard Worker #endif //HAVESSL
190*7ab6e6acSAndroid Build Coastguard Worker 
191*7ab6e6acSAndroid Build Coastguard Worker #ifdef NOT_YET_SUPPORTED /* still working on these */
192*7ab6e6acSAndroid Build Coastguard Worker #endif
193*7ab6e6acSAndroid Build Coastguard Worker 
194*7ab6e6acSAndroid Build Coastguard Worker 			   "\n"
195*7ab6e6acSAndroid Build Coastguard Worker                            "[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-\n"
196*7ab6e6acSAndroid Build Coastguard Worker 			   "\n"
197*7ab6e6acSAndroid Build Coastguard Worker #ifdef PACKAGE_URL
198*7ab6e6acSAndroid Build Coastguard Worker                            "iperf3 homepage at: " PACKAGE_URL "\n"
199*7ab6e6acSAndroid Build Coastguard Worker #endif /* PACKAGE_URL */
200*7ab6e6acSAndroid Build Coastguard Worker #ifdef PACKAGE_BUGREPORT
201*7ab6e6acSAndroid Build Coastguard Worker                            "Report bugs to:     " PACKAGE_BUGREPORT "\n"
202*7ab6e6acSAndroid Build Coastguard Worker #endif /* PACKAGE_BUGREPORT */
203*7ab6e6acSAndroid Build Coastguard Worker 			   ;
204*7ab6e6acSAndroid Build Coastguard Worker 
205*7ab6e6acSAndroid Build Coastguard Worker #ifdef OBSOLETE /* from old iperf: no longer supported. Add some of these back someday */
206*7ab6e6acSAndroid Build Coastguard Worker   "-d, --dualtest           Do a bidirectional test simultaneously\n"
207*7ab6e6acSAndroid Build Coastguard Worker   "-L, --listenport #       port to recieve bidirectional tests back on\n"
208*7ab6e6acSAndroid Build Coastguard Worker   "-I, --stdin              input the data to be transmitted from stdin\n"
209*7ab6e6acSAndroid Build Coastguard Worker   "-F, --fileinput <name>   input the data to be transmitted from a file\n"
210*7ab6e6acSAndroid Build Coastguard Worker   "-r, --tradeoff           Do a bidirectional test individually\n"
211*7ab6e6acSAndroid Build Coastguard Worker   "-T, --ttl       #        time-to-live, for multicast (default 1)\n"
212*7ab6e6acSAndroid Build Coastguard Worker   "-x, --reportexclude [CDMSV]   exclude C(connection) D(data) M(multicast) S(settings) V(server) reports\n"
213*7ab6e6acSAndroid Build Coastguard Worker   "-y, --reportstyle C      report as a Comma-Separated Values\n"
214*7ab6e6acSAndroid Build Coastguard Worker #endif
215*7ab6e6acSAndroid Build Coastguard Worker 
216*7ab6e6acSAndroid Build Coastguard Worker const char version[] = PACKAGE_STRING;
217*7ab6e6acSAndroid Build Coastguard Worker 
218*7ab6e6acSAndroid Build Coastguard Worker /* -------------------------------------------------------------------
219*7ab6e6acSAndroid Build Coastguard Worker  * settings
220*7ab6e6acSAndroid Build Coastguard Worker  * ------------------------------------------------------------------- */
221*7ab6e6acSAndroid Build Coastguard Worker 
222*7ab6e6acSAndroid Build Coastguard Worker const char seperator_line[] =
223*7ab6e6acSAndroid Build Coastguard Worker "------------------------------------------------------------\n";
224*7ab6e6acSAndroid Build Coastguard Worker 
225*7ab6e6acSAndroid Build Coastguard Worker const char server_port[] =
226*7ab6e6acSAndroid Build Coastguard Worker "Server listening on %s port %d\n";
227*7ab6e6acSAndroid Build Coastguard Worker 
228*7ab6e6acSAndroid Build Coastguard Worker const char client_port[] =
229*7ab6e6acSAndroid Build Coastguard Worker "Client connecting to %s, %s port %d\n";
230*7ab6e6acSAndroid Build Coastguard Worker 
231*7ab6e6acSAndroid Build Coastguard Worker const char bind_address[] =
232*7ab6e6acSAndroid Build Coastguard Worker "Binding to local address %s\n";
233*7ab6e6acSAndroid Build Coastguard Worker 
234*7ab6e6acSAndroid Build Coastguard Worker const char bind_port[] =
235*7ab6e6acSAndroid Build Coastguard Worker "Binding to local port %s\n";
236*7ab6e6acSAndroid Build Coastguard Worker 
237*7ab6e6acSAndroid Build Coastguard Worker const char multicast_ttl[] =
238*7ab6e6acSAndroid Build Coastguard Worker "Setting multicast TTL to %d\n";
239*7ab6e6acSAndroid Build Coastguard Worker 
240*7ab6e6acSAndroid Build Coastguard Worker const char join_multicast[] =
241*7ab6e6acSAndroid Build Coastguard Worker "Joining multicast group  %s\n";
242*7ab6e6acSAndroid Build Coastguard Worker 
243*7ab6e6acSAndroid Build Coastguard Worker const char client_datagram_size[] =
244*7ab6e6acSAndroid Build Coastguard Worker "Sending %d byte datagrams\n";
245*7ab6e6acSAndroid Build Coastguard Worker 
246*7ab6e6acSAndroid Build Coastguard Worker const char server_datagram_size[] =
247*7ab6e6acSAndroid Build Coastguard Worker "Receiving %d byte datagrams\n";
248*7ab6e6acSAndroid Build Coastguard Worker 
249*7ab6e6acSAndroid Build Coastguard Worker const char tcp_window_size[] =
250*7ab6e6acSAndroid Build Coastguard Worker "TCP window size";
251*7ab6e6acSAndroid Build Coastguard Worker 
252*7ab6e6acSAndroid Build Coastguard Worker const char udp_buffer_size[] =
253*7ab6e6acSAndroid Build Coastguard Worker "UDP buffer size";
254*7ab6e6acSAndroid Build Coastguard Worker 
255*7ab6e6acSAndroid Build Coastguard Worker const char window_default[] =
256*7ab6e6acSAndroid Build Coastguard Worker "(default)";
257*7ab6e6acSAndroid Build Coastguard Worker 
258*7ab6e6acSAndroid Build Coastguard Worker const char wait_server_threads[] =
259*7ab6e6acSAndroid Build Coastguard Worker "Waiting for server threads to complete. Interrupt again to force quit.\n";
260*7ab6e6acSAndroid Build Coastguard Worker 
261*7ab6e6acSAndroid Build Coastguard Worker const char test_start_time[] =
262*7ab6e6acSAndroid Build Coastguard Worker "Starting Test: protocol: %s, %d streams, %d byte blocks, omitting %d seconds, %d second test, tos %d\n";
263*7ab6e6acSAndroid Build Coastguard Worker 
264*7ab6e6acSAndroid Build Coastguard Worker const char test_start_bytes[] =
265*7ab6e6acSAndroid Build Coastguard Worker "Starting Test: protocol: %s, %d streams, %d byte blocks, omitting %d seconds, %llu bytes to send, tos %d\n";
266*7ab6e6acSAndroid Build Coastguard Worker 
267*7ab6e6acSAndroid Build Coastguard Worker const char test_start_blocks[] =
268*7ab6e6acSAndroid Build Coastguard Worker "Starting Test: protocol: %s, %d streams, %d byte blocks, omitting %d seconds, %d blocks to send, tos %d\n";
269*7ab6e6acSAndroid Build Coastguard Worker 
270*7ab6e6acSAndroid Build Coastguard Worker 
271*7ab6e6acSAndroid Build Coastguard Worker /* -------------------------------------------------------------------
272*7ab6e6acSAndroid Build Coastguard Worker  * reports
273*7ab6e6acSAndroid Build Coastguard Worker  * ------------------------------------------------------------------- */
274*7ab6e6acSAndroid Build Coastguard Worker 
275*7ab6e6acSAndroid Build Coastguard Worker const char report_time[] =
276*7ab6e6acSAndroid Build Coastguard Worker "Time: %s\n";
277*7ab6e6acSAndroid Build Coastguard Worker 
278*7ab6e6acSAndroid Build Coastguard Worker const char report_connecting[] =
279*7ab6e6acSAndroid Build Coastguard Worker "Connecting to host %s, port %d\n";
280*7ab6e6acSAndroid Build Coastguard Worker 
281*7ab6e6acSAndroid Build Coastguard Worker const char report_authentication_succeeded[] =
282*7ab6e6acSAndroid Build Coastguard Worker "Authentication successed for user '%s' ts %ld\n";
283*7ab6e6acSAndroid Build Coastguard Worker 
284*7ab6e6acSAndroid Build Coastguard Worker const char report_authentication_failed[] =
285*7ab6e6acSAndroid Build Coastguard Worker "Authentication failed for user '%s' ts %ld\n";
286*7ab6e6acSAndroid Build Coastguard Worker 
287*7ab6e6acSAndroid Build Coastguard Worker const char report_reverse[] =
288*7ab6e6acSAndroid Build Coastguard Worker "Reverse mode, remote host %s is sending\n";
289*7ab6e6acSAndroid Build Coastguard Worker 
290*7ab6e6acSAndroid Build Coastguard Worker const char report_accepted[] =
291*7ab6e6acSAndroid Build Coastguard Worker "Accepted connection from %s, port %d\n";
292*7ab6e6acSAndroid Build Coastguard Worker 
293*7ab6e6acSAndroid Build Coastguard Worker const char report_cookie[] =
294*7ab6e6acSAndroid Build Coastguard Worker "      Cookie: %s\n";
295*7ab6e6acSAndroid Build Coastguard Worker 
296*7ab6e6acSAndroid Build Coastguard Worker const char report_connected[] =
297*7ab6e6acSAndroid Build Coastguard Worker "[%3d] local %s port %d connected to %s port %d\n";
298*7ab6e6acSAndroid Build Coastguard Worker 
299*7ab6e6acSAndroid Build Coastguard Worker const char report_window[] =
300*7ab6e6acSAndroid Build Coastguard Worker "TCP window size: %s\n";
301*7ab6e6acSAndroid Build Coastguard Worker 
302*7ab6e6acSAndroid Build Coastguard Worker const char report_autotune[] =
303*7ab6e6acSAndroid Build Coastguard Worker "Using TCP Autotuning\n";
304*7ab6e6acSAndroid Build Coastguard Worker 
305*7ab6e6acSAndroid Build Coastguard Worker const char report_omit_done[] =
306*7ab6e6acSAndroid Build Coastguard Worker "Finished omit period, starting real test\n";
307*7ab6e6acSAndroid Build Coastguard Worker 
308*7ab6e6acSAndroid Build Coastguard Worker const char report_diskfile[] =
309*7ab6e6acSAndroid Build Coastguard Worker "        Sent %s / %s (%d%%) of %s\n";
310*7ab6e6acSAndroid Build Coastguard Worker 
311*7ab6e6acSAndroid Build Coastguard Worker const char report_done[] =
312*7ab6e6acSAndroid Build Coastguard Worker "iperf Done.\n";
313*7ab6e6acSAndroid Build Coastguard Worker 
314*7ab6e6acSAndroid Build Coastguard Worker const char report_read_lengths[] =
315*7ab6e6acSAndroid Build Coastguard Worker "[%3d] Read lengths occurring in more than 5%% of reads:\n";
316*7ab6e6acSAndroid Build Coastguard Worker 
317*7ab6e6acSAndroid Build Coastguard Worker const char report_read_length_times[] =
318*7ab6e6acSAndroid Build Coastguard Worker "[%3d] %5d bytes read %5d times (%.3g%%)\n";
319*7ab6e6acSAndroid Build Coastguard Worker 
320*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_header[] =
321*7ab6e6acSAndroid Build Coastguard Worker "[ ID] Interval           Transfer     Bitrate\n";
322*7ab6e6acSAndroid Build Coastguard Worker 
323*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_header_bidir[] =
324*7ab6e6acSAndroid Build Coastguard Worker "[ ID][Role] Interval           Transfer     Bitrate\n";
325*7ab6e6acSAndroid Build Coastguard Worker 
326*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_retrans_header[] =
327*7ab6e6acSAndroid Build Coastguard Worker "[ ID] Interval           Transfer     Bitrate         Retr\n";
328*7ab6e6acSAndroid Build Coastguard Worker 
329*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_retrans_header_bidir[] =
330*7ab6e6acSAndroid Build Coastguard Worker "[ ID][Role] Interval           Transfer     Bitrate         Retr\n";
331*7ab6e6acSAndroid Build Coastguard Worker 
332*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_retrans_cwnd_header[] =
333*7ab6e6acSAndroid Build Coastguard Worker "[ ID] Interval           Transfer     Bitrate         Retr  Cwnd\n";
334*7ab6e6acSAndroid Build Coastguard Worker 
335*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_retrans_cwnd_header_bidir[] =
336*7ab6e6acSAndroid Build Coastguard Worker "[ ID][Role] Interval           Transfer     Bitrate         Retr  Cwnd\n";
337*7ab6e6acSAndroid Build Coastguard Worker 
338*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_udp_header[] =
339*7ab6e6acSAndroid Build Coastguard Worker "[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams\n";
340*7ab6e6acSAndroid Build Coastguard Worker 
341*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_udp_header_bidir[] =
342*7ab6e6acSAndroid Build Coastguard Worker "[ ID][Role] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams\n";
343*7ab6e6acSAndroid Build Coastguard Worker 
344*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_udp_sender_header[] =
345*7ab6e6acSAndroid Build Coastguard Worker "[ ID] Interval           Transfer     Bitrate         Total Datagrams\n";
346*7ab6e6acSAndroid Build Coastguard Worker 
347*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_udp_sender_header_bidir[] =
348*7ab6e6acSAndroid Build Coastguard Worker "[ ID][Role] Interval           Transfer     Bitrate         Total Datagrams\n";
349*7ab6e6acSAndroid Build Coastguard Worker 
350*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_format[] =
351*7ab6e6acSAndroid Build Coastguard Worker "[%3d]%s %6.2f-%-6.2f sec  %ss  %ss/sec                  %s\n";
352*7ab6e6acSAndroid Build Coastguard Worker 
353*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_retrans_format[] =
354*7ab6e6acSAndroid Build Coastguard Worker "[%3d]%s %6.2f-%-6.2f sec  %ss  %ss/sec  %3u             %s\n";
355*7ab6e6acSAndroid Build Coastguard Worker 
356*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_retrans_cwnd_format[] =
357*7ab6e6acSAndroid Build Coastguard Worker "[%3d]%s %6.2f-%-6.2f sec  %ss  %ss/sec  %3u   %ss       %s\n";
358*7ab6e6acSAndroid Build Coastguard Worker 
359*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_udp_format[] =
360*7ab6e6acSAndroid Build Coastguard Worker "[%3d]%s %6.2f-%-6.2f sec  %ss  %ss/sec  %5.3f ms  %d/%d (%.2g%%)  %s\n";
361*7ab6e6acSAndroid Build Coastguard Worker 
362*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_udp_sender_format[] =
363*7ab6e6acSAndroid Build Coastguard Worker "[%3d]%s %6.2f-%-6.2f sec  %ss  %ss/sec %s %d  %s\n";
364*7ab6e6acSAndroid Build Coastguard Worker 
365*7ab6e6acSAndroid Build Coastguard Worker const char report_summary[] =
366*7ab6e6acSAndroid Build Coastguard Worker "Test Complete. Summary Results:\n";
367*7ab6e6acSAndroid Build Coastguard Worker 
368*7ab6e6acSAndroid Build Coastguard Worker const char report_sum_bw_format[] =
369*7ab6e6acSAndroid Build Coastguard Worker "[SUM]%s %6.2f-%-6.2f sec  %ss  %ss/sec                  %s\n";
370*7ab6e6acSAndroid Build Coastguard Worker 
371*7ab6e6acSAndroid Build Coastguard Worker const char report_sum_bw_retrans_format[] =
372*7ab6e6acSAndroid Build Coastguard Worker "[SUM]%s %6.2f-%-6.2f sec  %ss  %ss/sec  %3d             %s\n";
373*7ab6e6acSAndroid Build Coastguard Worker 
374*7ab6e6acSAndroid Build Coastguard Worker const char report_sum_bw_udp_format[] =
375*7ab6e6acSAndroid Build Coastguard Worker "[SUM]%s %6.2f-%-6.2f sec  %ss  %ss/sec  %5.3f ms  %d/%d (%.2g%%)  %s\n";
376*7ab6e6acSAndroid Build Coastguard Worker 
377*7ab6e6acSAndroid Build Coastguard Worker const char report_sum_bw_udp_sender_format[] =
378*7ab6e6acSAndroid Build Coastguard Worker "[SUM]%s %6.2f-%-6.2f sec  %ss  %ss/sec %s %d  %s\n";
379*7ab6e6acSAndroid Build Coastguard Worker 
380*7ab6e6acSAndroid Build Coastguard Worker const char report_omitted[] = "(omitted)";
381*7ab6e6acSAndroid Build Coastguard Worker 
382*7ab6e6acSAndroid Build Coastguard Worker const char report_bw_separator[] =
383*7ab6e6acSAndroid Build Coastguard Worker "- - - - - - - - - - - - - - - - - - - - - - - - -\n";
384*7ab6e6acSAndroid Build Coastguard Worker 
385*7ab6e6acSAndroid Build Coastguard Worker const char report_outoforder[] =
386*7ab6e6acSAndroid Build Coastguard Worker "[%3d]%s %4.1f-%4.1f sec  %d datagrams received out-of-order\n";
387*7ab6e6acSAndroid Build Coastguard Worker 
388*7ab6e6acSAndroid Build Coastguard Worker const char report_sum_outoforder[] =
389*7ab6e6acSAndroid Build Coastguard Worker "[SUM]%s %4.1f-%4.1f sec  %d datagrams received out-of-order\n";
390*7ab6e6acSAndroid Build Coastguard Worker 
391*7ab6e6acSAndroid Build Coastguard Worker const char report_peer[] =
392*7ab6e6acSAndroid Build Coastguard Worker "[%3d] local %s port %u connected with %s port %u\n";
393*7ab6e6acSAndroid Build Coastguard Worker 
394*7ab6e6acSAndroid Build Coastguard Worker const char report_mss_unsupported[] =
395*7ab6e6acSAndroid Build Coastguard Worker "[%3d] MSS and MTU size unknown (TCP_MAXSEG not supported by OS?)\n";
396*7ab6e6acSAndroid Build Coastguard Worker 
397*7ab6e6acSAndroid Build Coastguard Worker const char report_mss[] =
398*7ab6e6acSAndroid Build Coastguard Worker "[%3d] MSS size %d bytes (MTU %d bytes, %s)\n";
399*7ab6e6acSAndroid Build Coastguard Worker 
400*7ab6e6acSAndroid Build Coastguard Worker const char report_datagrams[] =
401*7ab6e6acSAndroid Build Coastguard Worker "[%3d] Sent %d datagrams\n";
402*7ab6e6acSAndroid Build Coastguard Worker 
403*7ab6e6acSAndroid Build Coastguard Worker const char report_sum_datagrams[] =
404*7ab6e6acSAndroid Build Coastguard Worker "[SUM] Sent %d datagrams\n";
405*7ab6e6acSAndroid Build Coastguard Worker 
406*7ab6e6acSAndroid Build Coastguard Worker const char server_reporting[] =
407*7ab6e6acSAndroid Build Coastguard Worker "[%3d] Server Report:\n";
408*7ab6e6acSAndroid Build Coastguard Worker 
409*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_peer[] =
410*7ab6e6acSAndroid Build Coastguard Worker "%s,%u,%s,%u";
411*7ab6e6acSAndroid Build Coastguard Worker 
412*7ab6e6acSAndroid Build Coastguard Worker const char report_cpu[] =
413*7ab6e6acSAndroid Build Coastguard Worker "CPU Utilization: %s/%s %.1f%% (%.1f%%u/%.1f%%s), %s/%s %.1f%% (%.1f%%u/%.1f%%s)\n";
414*7ab6e6acSAndroid Build Coastguard Worker 
415*7ab6e6acSAndroid Build Coastguard Worker const char report_local[] = "local";
416*7ab6e6acSAndroid Build Coastguard Worker const char report_remote[] = "remote";
417*7ab6e6acSAndroid Build Coastguard Worker const char report_sender[] = "sender";
418*7ab6e6acSAndroid Build Coastguard Worker const char report_receiver[] = "receiver";
419*7ab6e6acSAndroid Build Coastguard Worker const char report_sender_not_available_format[] = "[%3d] (sender statistics not available)\n";
420*7ab6e6acSAndroid Build Coastguard Worker const char report_sender_not_available_summary_format[] = "[%3s] (sender statistics not available)\n";
421*7ab6e6acSAndroid Build Coastguard Worker const char report_receiver_not_available_format[] = "[%3d] (receiver statistics not available)\n";
422*7ab6e6acSAndroid Build Coastguard Worker const char report_receiver_not_available_summary_format[] = "[%3s] (receiver statistics not available)\n";
423*7ab6e6acSAndroid Build Coastguard Worker 
424*7ab6e6acSAndroid Build Coastguard Worker #if defined(linux)
425*7ab6e6acSAndroid Build Coastguard Worker const char report_tcpInfo[] =
426*7ab6e6acSAndroid Build Coastguard Worker "event=TCP_Info CWND=%u SND_SSTHRESH=%u RCV_SSTHRESH=%u UNACKED=%u SACK=%u LOST=%u RETRANS=%u FACK=%u RTT=%u REORDERING=%u\n";
427*7ab6e6acSAndroid Build Coastguard Worker #endif
428*7ab6e6acSAndroid Build Coastguard Worker #if defined(__FreeBSD__)
429*7ab6e6acSAndroid Build Coastguard Worker const char report_tcpInfo[] =
430*7ab6e6acSAndroid Build Coastguard Worker "event=TCP_Info CWND=%u RCV_WIND=%u SND_SSTHRESH=%u RTT=%u\n";
431*7ab6e6acSAndroid Build Coastguard Worker #endif
432*7ab6e6acSAndroid Build Coastguard Worker #if defined(__NetBSD__)
433*7ab6e6acSAndroid Build Coastguard Worker const char report_tcpInfo[] =
434*7ab6e6acSAndroid Build Coastguard Worker "event=TCP_Info CWND=%u RCV_WIND=%u SND_SSTHRESH=%u RTT=%u\n";
435*7ab6e6acSAndroid Build Coastguard Worker #endif
436*7ab6e6acSAndroid Build Coastguard Worker 
437*7ab6e6acSAndroid Build Coastguard Worker 
438*7ab6e6acSAndroid Build Coastguard Worker #ifdef HAVE_QUAD_SUPPORT
439*7ab6e6acSAndroid Build Coastguard Worker #ifdef HAVE_PRINTF_QD
440*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_format[] =
441*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%qd,%qd\n";
442*7ab6e6acSAndroid Build Coastguard Worker 
443*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_udp_format[] =
444*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%qd,%qd,%.3f,%d,%d,%.3f,%d\n";
445*7ab6e6acSAndroid Build Coastguard Worker #else // HAVE_PRINTF_QD
446*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_format[] =
447*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%lld,%lld\n";
448*7ab6e6acSAndroid Build Coastguard Worker 
449*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_udp_format[] =
450*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%lld,%lld,%.3f,%d,%d,%.3f,%d\n";
451*7ab6e6acSAndroid Build Coastguard Worker #endif // HAVE_PRINTF_QD
452*7ab6e6acSAndroid Build Coastguard Worker #else // HAVE_QUAD_SUPPORT
453*7ab6e6acSAndroid Build Coastguard Worker #ifdef WIN32
454*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_format[] =
455*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%I64d,%I64d\n";
456*7ab6e6acSAndroid Build Coastguard Worker 
457*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_udp_format[] =
458*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n";
459*7ab6e6acSAndroid Build Coastguard Worker #else
460*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_format[] =
461*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%d,%d\n";
462*7ab6e6acSAndroid Build Coastguard Worker 
463*7ab6e6acSAndroid Build Coastguard Worker const char reportCSV_bw_udp_format[] =
464*7ab6e6acSAndroid Build Coastguard Worker "%s,%s,%d,%.1f-%.1f,%d,%d,%.3f,%d,%d,%.3f,%d\n";
465*7ab6e6acSAndroid Build Coastguard Worker #endif //WIN32
466*7ab6e6acSAndroid Build Coastguard Worker #endif //HAVE_QUAD_SUPPORT
467*7ab6e6acSAndroid Build Coastguard Worker /* -------------------------------------------------------------------
468*7ab6e6acSAndroid Build Coastguard Worker  * warnings
469*7ab6e6acSAndroid Build Coastguard Worker  * ------------------------------------------------------------------- */
470*7ab6e6acSAndroid Build Coastguard Worker 
471*7ab6e6acSAndroid Build Coastguard Worker const char warn_window_requested[] =
472*7ab6e6acSAndroid Build Coastguard Worker " (WARNING: requested %s)";
473*7ab6e6acSAndroid Build Coastguard Worker 
474*7ab6e6acSAndroid Build Coastguard Worker const char warn_window_small[] =
475*7ab6e6acSAndroid Build Coastguard Worker "WARNING: TCP window size set to %d bytes. A small window size\n\
476*7ab6e6acSAndroid Build Coastguard Worker will give poor performance. See the Iperf documentation.\n";
477*7ab6e6acSAndroid Build Coastguard Worker 
478*7ab6e6acSAndroid Build Coastguard Worker const char warn_delay_large[] =
479*7ab6e6acSAndroid Build Coastguard Worker "WARNING: delay too large, reducing from %.1f to 1.0 seconds.\n";
480*7ab6e6acSAndroid Build Coastguard Worker 
481*7ab6e6acSAndroid Build Coastguard Worker const char warn_no_pathmtu[] =
482*7ab6e6acSAndroid Build Coastguard Worker "WARNING: Path MTU Discovery may not be enabled.\n";
483*7ab6e6acSAndroid Build Coastguard Worker 
484*7ab6e6acSAndroid Build Coastguard Worker const char warn_no_ack[]=
485*7ab6e6acSAndroid Build Coastguard Worker "[%3d] WARNING: did not receive ack of last datagram after %d tries.\n";
486*7ab6e6acSAndroid Build Coastguard Worker 
487*7ab6e6acSAndroid Build Coastguard Worker const char warn_ack_failed[]=
488*7ab6e6acSAndroid Build Coastguard Worker "[%3d] WARNING: ack of last datagram failed after %d tries.\n";
489*7ab6e6acSAndroid Build Coastguard Worker 
490*7ab6e6acSAndroid Build Coastguard Worker const char warn_fileopen_failed[]=
491*7ab6e6acSAndroid Build Coastguard Worker "WARNING: Unable to open file stream for transfer\n\
492*7ab6e6acSAndroid Build Coastguard Worker Using default data stream. \n";
493*7ab6e6acSAndroid Build Coastguard Worker 
494*7ab6e6acSAndroid Build Coastguard Worker const char unable_to_change_win[]=
495*7ab6e6acSAndroid Build Coastguard Worker "WARNING: Unable to change the window size\n";
496*7ab6e6acSAndroid Build Coastguard Worker 
497*7ab6e6acSAndroid Build Coastguard Worker const char opt_estimate[]=
498*7ab6e6acSAndroid Build Coastguard Worker "Optimal Estimate\n";
499*7ab6e6acSAndroid Build Coastguard Worker 
500*7ab6e6acSAndroid Build Coastguard Worker const char report_interval_small[] =
501*7ab6e6acSAndroid Build Coastguard Worker "WARNING: interval too small, increasing from %3.2f to 0.5 seconds.\n";
502*7ab6e6acSAndroid Build Coastguard Worker 
503*7ab6e6acSAndroid Build Coastguard Worker const char warn_invalid_server_option[] =
504*7ab6e6acSAndroid Build Coastguard Worker "WARNING: option -%c is not valid for server mode\n";
505*7ab6e6acSAndroid Build Coastguard Worker 
506*7ab6e6acSAndroid Build Coastguard Worker const char warn_invalid_client_option[] =
507*7ab6e6acSAndroid Build Coastguard Worker "WARNING: option -%c is not valid for client mode\n";
508*7ab6e6acSAndroid Build Coastguard Worker 
509*7ab6e6acSAndroid Build Coastguard Worker const char warn_invalid_compatibility_option[] =
510*7ab6e6acSAndroid Build Coastguard Worker "WARNING: option -%c is not valid in compatibility mode\n";
511*7ab6e6acSAndroid Build Coastguard Worker 
512*7ab6e6acSAndroid Build Coastguard Worker const char warn_implied_udp[] =
513*7ab6e6acSAndroid Build Coastguard Worker "WARNING: option -%c implies udp testing\n";
514*7ab6e6acSAndroid Build Coastguard Worker 
515*7ab6e6acSAndroid Build Coastguard Worker const char warn_implied_compatibility[] =
516*7ab6e6acSAndroid Build Coastguard Worker "WARNING: option -%c has implied compatibility mode\n";
517*7ab6e6acSAndroid Build Coastguard Worker 
518*7ab6e6acSAndroid Build Coastguard Worker const char warn_buffer_too_small[] =
519*7ab6e6acSAndroid Build Coastguard Worker "WARNING: the UDP buffer was increased to %d for proper operation\n";
520*7ab6e6acSAndroid Build Coastguard Worker 
521*7ab6e6acSAndroid Build Coastguard Worker const char warn_invalid_single_threaded[] =
522*7ab6e6acSAndroid Build Coastguard Worker "WARNING: option -%c is not valid in single threaded versions\n";
523*7ab6e6acSAndroid Build Coastguard Worker 
524*7ab6e6acSAndroid Build Coastguard Worker const char warn_invalid_report_style[] =
525*7ab6e6acSAndroid Build Coastguard Worker "WARNING: unknown reporting style \"%s\", switching to default\n";
526*7ab6e6acSAndroid Build Coastguard Worker 
527*7ab6e6acSAndroid Build Coastguard Worker const char warn_invalid_report[] =
528*7ab6e6acSAndroid Build Coastguard Worker "WARNING: unknown reporting type \"%c\", ignored\n valid options are:\n\t exclude: C(connection) D(data) M(multicast) S(settings) V(server) report\n\n";
529*7ab6e6acSAndroid Build Coastguard Worker 
530*7ab6e6acSAndroid Build Coastguard Worker #ifdef __cplusplus
531*7ab6e6acSAndroid Build Coastguard Worker } /* end extern "C" */
532*7ab6e6acSAndroid Build Coastguard Worker #endif
533