1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
|
/*---------------------------------------------------------------
* Copyright (c) 1999,2000,2001,2002,2003
* The Board of Trustees of the University of Illinois
* All Rights Reserved.
*---------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software (Iperf) and associated
* documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
*
* Redistributions of source code must retain the above
* copyright notice, this list of conditions and
* the following disclaimers.
*
*
* Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimers in the documentation and/or other materials
* provided with the distribution.
*
*
* Neither the names of the University of Illinois, NCSA,
* nor the names of its contributors may be used to endorse
* or promote products derived from this Software without
* specific prior written permission.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE CONTIBUTORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ________________________________________________________________
* National Laboratory for Applied Network Research
* National Center for Supercomputing Applications
* University of Illinois at Urbana-Champaign
* http://www.ncsa.uiuc.edu
* ________________________________________________________________
*
* Locale.h
* by Ajay Tirumala <tirumala@ncsa.uiuc.edu>
* & Mark Gates <mgates@nlanr.net>
* -------------------------------------------------------------------
* Strings and other stuff that is locale specific.
* ------------------------------------------------------------------- */
#ifndef LOCALE_H
#define LOCALE_H
#ifdef __cplusplus
extern "C" {
#endif
#define HEADING_FLAG(HEADING) __ ## HEADING ## _print_done
#define HEADING_HDR(HEADING) HEADING ## _header
#define HEADING_PRINT_COND(HEADING) \
do { \
if (!HEADING_FLAG(HEADING)) { \
printf("%s", HEADING_HDR(HEADING)); \
HEADING_FLAG(HEADING) = 1; \
} \
} while(0)
/* -------------------------------------------------------------------
* usage
* ------------------------------------------------------------------- */
extern const char usage_short[];
extern const char usage_long1[];
extern const char usage_long2[];
extern const char version[];
/* -------------------------------------------------------------------
* settings
* ------------------------------------------------------------------- */
extern const char separator_line[];
extern const char server_port[];
extern const char client_port[];
extern const char client_report_epoch_start[];
extern const char client_report_epoch_start_current[];
extern const char server_pid_port[];
extern const char server_pid_portrange[];
extern const char client_pid_port[];
extern const char client_pid_port_dev[];
extern const char bind_address[];
extern const char bind_address_iface[];
extern const char bind_address_iface_taptun[];
extern const char multicast_ttl[];
extern const char join_multicast[];
extern const char join_multicast_sg[];
extern const char join_multicast_sg_dev[];
extern const char join_multicast_starg_dev[];
extern const char client_datagram_size[];
extern const char client_datagram_size_tx_sync[];
extern const char client_datagram_size_kalman[];
extern const char server_datagram_size[];
extern const char tcp_window_size[];
extern const char udp_buffer_size[];
extern const char window_default[];
extern const char wait_server_threads[];
extern const char client_isochronous[];
extern const char client_burstperiod[];
extern const char client_burstperiodcount[];
extern const char client_bounceback[];
extern const char client_bounceback_noqack[];
extern const char server_burstperiod[];
extern const char client_fq_pacing[];
/* -------------------------------------------------------------------
* Legacy reports
* ------------------------------------------------------------------- */
extern const char report_bw_header[];
extern const char report_sumcnt_bw_header[];
extern const char report_bw_format[];
extern const char report_sum_bw_format[];
extern const char report_sumcnt_bw_format[];
extern const char report_bw_read_format[];
extern const char report_bw_jitter_loss_header[];
extern const char report_bw_jitter_loss_format[];
extern const char report_sum_bw_jitter_loss_format[];
extern const char report_sumcnt_bw_jitter_loss_header[];
extern const char report_sumcnt_bw_jitter_loss_format[];
/* -------------------------------------------------------------------
* Enhanced reports (per -e)
* ------------------------------------------------------------------- */
extern const char client_write_size[];
extern const char server_read_size[];
extern const char report_bw_enhanced_format[];
extern const char report_write_enhanced_isoch_format[];
extern const char report_write_enhanced_isoch_header[];
extern const char report_write_enhanced_isoch_nocwnd_format[];
extern const char report_sum_bw_enhanced_format[];
extern const char report_bw_read_enhanced_header[];
extern const char report_bw_read_enhanced_netpwr_header[];
extern const char report_bw_read_enhanced_netpwr_format[];
extern const char report_bw_read_enhanced_format[];
extern const char report_sum_bw_read_enhanced_format[];
extern const char report_sumcnt_bw_read_enhanced_header[];
extern const char report_sumcnt_bw_read_enhanced_format[];
extern const char report_sumcnt_bw_read_triptime_header[];
extern const char report_sumcnt_bw_read_triptime_format[];
extern const char report_sumcnt_bw_pps_enhanced_header[];
extern const char report_sumcnt_bw_pps_enhanced_format[];
extern const char report_triptime_enhanced_format[];
extern const char report_bw_write_enhanced_header[];
extern const char report_bw_write_enhanced_header[];
extern const char report_sumcnt_write_enhanced_write_header[];
extern const char report_bw_write_enhanced_format[];
extern const char report_write_enhanced_write_header[];
extern const char report_write_enhanced_write_format[];
extern const char report_write_enhanced_nocwnd_write_format[];
extern const char report_bw_write_enhanced_nocwnd_format[];
extern const char report_sum_bw_write_enhanced_format[];
extern const char report_sumcnt_bw_write_enhanced_header[];
extern const char report_sumcnt_bw_write_enhanced_format[];
extern const char report_bw_pps_enhanced_header[];
extern const char report_bw_pps_enhanced_format[];
extern const char report_bw_pps_enhanced_isoch_header[];
extern const char report_bw_pps_enhanced_isoch_format[];
extern const char report_sum_bw_pps_enhanced_format[];
extern const char report_bw_jitter_loss_pps_header[];
extern const char report_bw_jitter_loss_pps_format[];
extern const char report_bw_jitter_loss_enhanced_header[];
extern const char report_bw_jitter_loss_enhanced_format[];
extern const char report_bw_jitter_loss_enhanced_isoch_header[];
extern const char report_bw_jitter_loss_enhanced_isoch_format[];
extern const char report_bw_jitter_loss_enhanced_triptime_header[];
extern const char report_bw_jitter_loss_enhanced_triptime_format[];
extern const char report_bw_jitter_loss_enhanced_isoch_triptime_header[];
extern const char report_bw_jitter_loss_enhanced_isoch_triptime_format[];
extern const char report_bw_jitter_loss_suppress_enhanced_format[];
extern const char report_sum_bw_jitter_loss_enhanced_format[];
extern const char report_sumcnt_bw_jitter_loss_enhanced_format[];
extern const char report_bw_sum_fullduplex_format[];
extern const char report_bw_sum_fullduplex_enhanced_format[];
extern const char report_frame_jitter_loss_enhanced_header[];
extern const char report_frame_jitter_loss_enhanced_format[];
extern const char report_frame_jitter_loss_suppress_enhanced_format[];
extern const char report_frame_tcp_enhanced_header[];
extern const char report_burst_read_tcp_header[];
extern const char report_burst_read_tcp_format[];
extern const char report_burst_read_tcp_final_format[];
extern const char report_burst_write_tcp_header[];
extern const char report_burst_write_tcp_format[];
extern const char report_burst_write_tcp_nocwnd_format[];
extern const char report_burst_write_tcp_final_format[];
extern const char report_udp_fullduplex_header[];
extern const char report_udp_fullduplex_format[];
extern const char report_udp_fullduplex_sum_format[];
extern const char report_udp_fullduplex_enhanced_format[];
extern const char report_sumcnt_udp_fullduplex_header[];
extern const char report_sumcnt_udp_fullduplex_format[];
extern const char report_client_bb_bw_header[];
extern const char report_client_bb_bw_format[];
extern const char report_client_bb_bw_triptime_format[];
extern const char report_bw_isoch_enhanced_netpwr_header[];
extern const char report_bw_isoch_enhanced_netpwr_format[];
extern const char report_sumcnt_udp_enhanced_header[];
extern const char report_sumcnt_udp_enhanced_format[];
extern const char report_sumcnt_udp_triptime_header[];
extern const char report_sumcnt_udp_triptime_format[];
/* -------------------------------------------------------------------
* Misc reports
* ------------------------------------------------------------------- */
extern const char report_outoforder[];
extern const char report_sumcnt_outoforder[];
extern const char report_l2statistics[];
extern const char report_sum_outoforder[];
extern const char report_peer[];
extern const char report_peer_dev[];
extern const char report_peer_fail[];
extern const char report_mss_unsupported[];
extern const char report_mss[];
extern const char report_default_mss[];
extern const char report_datagrams[];
extern const char report_sumcnt_datagrams[];
extern const char report_sum_datagrams[];
extern const char server_reporting[];
extern const char reportCSV_peer[];
extern const char reportCSV_bw_format[];
extern const char reportCSV_bw_read_enhanced_format[];
extern const char reportCSV_bw_write_enhanced_format[];
extern const char reportCSV_bw_jitter_loss_format[];
extern const char reportCSV_bw_jitter_loss_pps_format[];
/* -------------------------------------------------------------------
* warnings
* ------------------------------------------------------------------- */
extern const char warn_window_requested[];
extern const char warn_window_small[];
extern const char warn_delay_large[];
extern const char warn_no_pathmtu[];
extern const char warn_no_ack[];
extern const char warn_ack_failed[];
extern const char warn_fileopen_failed[];
extern const char unable_to_change_win[];
extern const char opt_estimate[];
extern const char report_interval_small[];
extern const char warn_invalid_server_option[];
extern const char warn_invalid_client_option[];
extern const char warn_invalid_compatibility_option[];
extern const char warn_implied_udp[];
extern const char warn_implied_compatibility[];
extern const char warn_buffer_too_small[];
extern const char warn_invalid_single_threaded[];
extern const char warn_invalid_report_style[];
extern const char warn_invalid_report[];
extern const char warn_server_old[];
extern const char warn_test_exchange_failed[];
extern const char warn_len_too_small_peer_exchange[];
extern const char warn_compat_and_peer_exchange[];
extern const char warn_seqno_wrap[];
extern const char warn_start_before_now[];
extern const char error_starttime_exceeds[];
extern const char error_delaytime_exceeds[];
#ifdef __cplusplus
} /* end extern "C" */
#endif
#endif // LOCALE_H
|