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