diff options
author | Jon Schipp <jonschipp@gmail.com> | 2013-10-14 12:59:25 -0700 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-10-15 11:56:38 +0200 |
commit | 859f1fe60ae57d49c6a475117f3fbbfc46293448 (patch) | |
tree | d01546f6dae649e7169522e4b9795db4041202bd /trafgen.zsh | |
parent | 2548dc39129485b6c78889a578d3a42f4a680bb6 (diff) |
trafgen: set interpacket gap in time units (s/ms/us/ns)
Add ability to set IGP in time units in seconds, milliseconds,
microseconds, and nanoseconds by appending a postfix to --gap e.g. --gap
100ms. Also, update the man page and trafgen.zsh to reflect the
changes.
[Fix whitespaces, coding style and minor wording changes -- tklauser]
Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.zsh')
-rw-r--r-- | trafgen.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen.zsh b/trafgen.zsh index 8fd1a37..8a90381 100644 --- a/trafgen.zsh +++ b/trafgen.zsh @@ -42,7 +42,7 @@ _arguments -s -S \ "(-n --num)"{-n,--num}"[Number of packets until exit (def: 0)]" \ "(-r --rand)"{-r,--rand}"[Randomize packet selection (def: round robin)]" \ "(-P --cpus)"{-P,--cpus}"[Specify number of forks(<= CPUs) (def: #CPUs)]:cpunum:_cpu" \ - "(-t --gap)"{-t,--gap}"[Interpacket gap in us (approx)]" \ + "(-t --gap)"{-t,--gap}"[Set approx. interpacket gap (s/ms/us/ns, def: us)]:gap:" "(-S --ring-size)"{-S,--ring-size}"[Manually set mmap size (KiB/MiB/GiB)]:ringsize:" \ "(-k --kernel-pull)"{-k,--kernel-pull}"[Kernel pull from user interval in us (def: 10us)]:kernelpull:_gnu_generic" \ "(-E --seed)"{-E,--seed}"[Manually set srand(3) seed]" \ |