Changeset 2014

Show
Ignore:
Timestamp:
05/03/08 12:21:43 (7 months ago)
Author:
aturner
Message:

default is now gtod() refs #41

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/tcpreplay_opts.def

    r2006 r2014  
    8080 
    8181Packet timing at high speeds is a black art and very OS/CPU dependent.   
    82 Your best bet is to use @var{--timing=rdtsc}, do your own testing and tweak the  
    83 @var{--rdtsc-clicks} option accordingly.  Newer CPU's and Linux kernels 
    84 with HPET enabled may have good results with @var{--timing=gtod}. 
    8582 
    8683Replaying captured traffic may simulate odd or broken conditions on your 
    87 network and cause problems. 
     84network and cause all sorts of problems. 
    8885 
    8986In most cases, you can not replay traffic back to/at a server. 
     
    9188Some operating systems by default do not allow for forging source MAC 
    9289addresses.  Please consult your operating system's documentation and the 
    93 tcpreplay FAQ if you experiance this issue. 
     90tcpreplay FAQ if you experience this issue. 
    9491EOMan; 
    9592 
     
    121118        name            = timer; 
    122119        value           = T; 
     120        arg-default = "gtod"; 
    123121        max                     = 1; 
    124122        arg-type    = string; 
     
    128126@enumerate 
    129127@item nano 
    130 - Use nanosleep() API [default] 
     128- Use nanosleep() API 
    131129@item select 
    132130- Use select() API 
     
    135133@item rdtsc   
    136134- Use the x86/x86_64/PPC RDTSC 
    137 @item gtod    
     135@item gtod [default] 
    138136- Use a gettimeofday() loop 
    139137@item abstime 
    140 - Use OS X's AbsoluteTime 
     138- Use OS X's AbsoluteTime API 
    141139@end enumerate 
    142140 
     
    147145    name        = sleep-accel; 
    148146    arg-type    = number; 
    149     arg-default = 5; 
     147    arg-default = 0; 
    150148    descrip     = "Reduce the amount of time to sleep by specified usec"; 
    151149    doc         = <<- EOText 
    152150Reduce the amount of time we would normally sleep between two packets by the  
    153 specified number of usec.  This is primarily intended to compensate for the 
    154 overhead in tcpreplay to process & send packets.  Default is 5usec which seems 
    155 to work well on my 2.16Ghz MacBook Pro. 
     151specified number of usec.  This provides a "fuzz factor" to compensate for 
     152running on a non-RTOS and other processes using CPU time.  Default is disabled. 
    156153EOText; 
    157154}; 
     
    437434    fprintf(stderr, "Packet editing: disabled\n"); 
    438435#endif 
     436#ifdef ENABLE_FRAGROUTE 
     437    fprintf(stderr, "Fragroute engine: enabled\n"); 
     438#else 
     439    fprintf(stderr, "Fragroute engine: disabled\n"); 
     440#endif 
    439441    exit(0); 
    440442