summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-01-27 13:09:00 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-01-27 13:09:00 +0100
commit6e6f191b2e1089d19f0930c03e0b0c8e1f9908e4 (patch)
treefb8d900a55c73a27c747270dc98cb2b699825d80
parent6d971f2569da42ebcaf49e49e94498d458a17aca (diff)
completion: Update completion from netsniff-ng git
-rw-r--r--.zsh/completion/_bpfc.zsh1
-rw-r--r--.zsh/completion/_trafgen.zsh4
2 files changed, 4 insertions, 1 deletions
diff --git a/.zsh/completion/_bpfc.zsh b/.zsh/completion/_bpfc.zsh
index 2685bad..63c54e0 100644
--- a/.zsh/completion/_bpfc.zsh
+++ b/.zsh/completion/_bpfc.zsh
@@ -13,6 +13,7 @@ typeset -A opt_args
_arguments -s -S \
"(-i --input)"{-i,--input}"[Berkeley Packet Filter file]:input:_files" \
"(-p --cpp)"{-p,--cpp}"[Run bpf program through C preprocessor]" \
+ "(-D --define)"{-D,--define}"[Add macro definition for the C preprocessor]::" \
"(-f --format)"{-f,--format}"[Output format]:output:(C netsniff-ng xt_bpf tcpdump)" \
"(-b --bypass)"{-b,--bypass}"[Bypass filter validation (e.g. for bug testing)]" \
"(-d --dump)"{-d,--dump}"[Dump supported instruction table]" \
diff --git a/.zsh/completion/_trafgen.zsh b/.zsh/completion/_trafgen.zsh
index 57dcf8c..2fba722 100644
--- a/.zsh/completion/_trafgen.zsh
+++ b/.zsh/completion/_trafgen.zsh
@@ -36,13 +36,15 @@ _arguments -s -S \
"(-i -c --in --conf)"{-i,-c,--in,--conf}"[Packet configuration file/stdin]:input:_files" \
"(-o -d --out --dev)"{-o,-d,--out,--dev}"[Networking device i.e., eth0]:device:_interfaces" \
"(-p --cpp)"{-p,--cpp}"[Run packet config through C preprocessor]" \
+ "(-D --define)"{-D,--define}"[Add macro definition for the C preprocessor]::" \
"(-J --jumbo-support)"{-J,--jumbo-support}"[Support 64KB super jumbo frames (def: 2048B)]" \
"(-R --rfraw)"{-R,--rfraw}"[Inject raw 802.11 frames]" \
"(-s --smoke-test)"{-s,--smoke-test}"[Probe if machine survived fuzz-tested packet]" \
"(-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}"[Set approx. interpacket gap (s/ms/us/ns, def: us)]:gap:"
+ "(-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" \