summaryrefslogtreecommitdiff
path: root/trafgen.zsh
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-01-05 16:47:41 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-01-05 16:48:27 +0100
commit391ed1e5327fedfe4215b07dd98bf04a6ad0f5cb (patch)
treeeb6d0bd297e45eb94c66dcb547fe1e5222abedf3 /trafgen.zsh
parent06a1eb3e6714575ffd47fe35a95b27bdb77e3187 (diff)
zsh: trafgen: Add completion for -b/--rate
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.zsh')
-rw-r--r--trafgen.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen.zsh b/trafgen.zsh
index 2bfe226..2fba722 100644
--- a/trafgen.zsh
+++ b/trafgen.zsh
@@ -44,6 +44,7 @@ _arguments -s -S \
"(-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}"[Set approx. interpacket gap (s/ms/us/ns, def: us)]:gap:" \
+ "(-b --rate)"(-b,--rate)"[Send traffic at specified rate (pps/B/kB/MB/GB/kbit/Mbit/Gbit/KiB/MiB/GiB):rate:" \
"(-S --ring-size)"{-S,--ring-size}"[Manually set mmap size (KiB/MiB/GiB)]:ringsize:" \
"(-E --seed)"{-E,--seed}"[Manually set srand(3) seed]" \
"(-u --user)"{-u,--user}"[Drop privileges and change to userid]:user:_user_info" \