Changeset 1e0a804
- Timestamp:
- 05/18/18 11:39:59 (3 years ago)
- Branches:
- cachetimestamps, develop, etsilive, master, rc-4.0.4, ringdecrementfix, ringperformance
- Children:
- 1060b6d
- Parents:
- cc9c9de
- git-author:
- Shane Alcock <salcock@…> (04/17/18 16:58:12)
- git-committer:
- Shane Alcock <salcock@…> (05/18/18 11:39:59)
- Location:
- tools/tracereplay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereplay/tracereplay.1
rd6dc0f6 r1e0a804 4 4 .SH SYNOPSIS 5 5 .B tracereplay 6 [\-b | \-\^\-broadcast] [-s \-\^\-snaplength [ snaplength] ] 7 [\-f | \-\^\-filter [ filter string ] ] 6 [\-b | \-\^\-broadcast] [-s \-\^\-snaplength [ snaplength] ] 7 [\-f | \-\^\-filter [ filter string ] ] [\-X | \-\^\-speedup [ factor] ] 8 8 inputuri outputuri 9 9 .SH DESCRPTION … … 23 23 .TP 24 24 .PD 0 25 .BI \-s [snaplength]25 .BI \-s " snaplength" 26 26 .TP 27 27 .PD 28 .BI \-\^\-snaplength [snaplength]28 .BI \-\^\-snaplength " snaplength" 29 29 Truncate the packets to the length specified. This only makes a difference 30 30 if the inputuri is a capture device. The value should be > 0. Inappropriate … … 33 33 .TP 34 34 .PD 0 35 .BI \-f [ filter string ]35 .BI \-f " filterstring" 36 36 .TP 37 37 .PD 38 .BI \-\^\-filter [ filter ]38 .BI \-\^\-filter " filterstring" 39 39 Apply a filter to the inputuri. 40 41 .TP 42 .PD 0 43 .BI \-X " factor" 44 .TP 45 .PD 46 .BI \-\^\-speedup " factor" 47 Decrease the gaps between packets by the specified factor. This will accelerate 48 the rate at which the replay is performed. By default, the factor is 1 (i.e. 49 no acceleration). 40 50 41 51 .SH LINKS -
tools/tracereplay/tracereplay.c
rcc9c9de r1e0a804 196 196 fprintf(stderr, " --broadcast\n"); 197 197 fprintf(stderr, "\t\tSend ethernet frames to broadcast address\n"); 198 fprintf(stderr, " -X\n"); 199 fprintf(stderr, " --speedup\n"); 200 fprintf(stderr, "\t\tSpeed up replay by a factor of <speedup>\n"); 198 201 199 202 } … … 219 222 { "snaplen", 1, 0, 's'}, 220 223 { "broadcast", 0, 0, 'b'}, 224 { "speedup", 1, 0, 'X'}, 221 225 { NULL, 0, 0, 0} 222 226 }; 223 227 224 int c = getopt_long(argc, argv, "bhs:f: ",228 int c = getopt_long(argc, argv, "bhs:f:X:", 225 229 long_options, &option_index); 226 230 … … 235 239 snaplen = atoi(optarg); 236 240 break; 237 241 case 'X': 242 speedup = atoi(optarg); 243 break; 238 244 case 'b': 239 245 broadcast = 1; … … 260 266 } 261 267 268 if (speedup < 1) { 269 speedup = 1; 270 } 271 262 272 uri = strdup(argv[optind]); 263 273 … … 282 292 } 283 293 } 294 295 if (trace_config(trace, TRACE_OPTION_REPLAY_SPEEDUP, &speedup)) { 296 trace_perror(trace, "error setting replay speedup factor"); 297 return 1; 298 } 284 299 285 300 /* Starting the trace */
Note: See TracChangeset
for help on using the changeset viewer.