summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2015-04-22 22:17:31 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2015-04-22 22:17:31 +0200
commitb6f26d614e65ddcd1b32989b7ef5ae002d5e6650 (patch)
treef34b729ec7989074ddbc25f4056afbd510d5c827
parenta6d81446c350218e36e53716ff277886069794b9 (diff)
zsh: netsniff-ng: add completions
Add completions for the three new options. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rw-r--r--netsniff-ng.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/netsniff-ng.zsh b/netsniff-ng.zsh
index f60f867..a0050f2 100644
--- a/netsniff-ng.zsh
+++ b/netsniff-ng.zsh
@@ -35,6 +35,9 @@ _interfaces () {
_arguments -s -S \
"(-i -d --dev --in)"{-i,-d,--dev,--in}"[Input source as netdev, pcap or pcap stdin]:input:_interfaces" \
"(-o --out)"{-o,--out}"[Output sink as netdev, pcap, directory, trafgen, or stdout]::_gnu_generic" \
+ "(-C --fanout-group)"{-C,--fanout-group}"[Join packet fanout group]" \
+ "(-K --fanout-type)"{-K,--fanout-type}"[Apply fanout discipline: hash|lb|cpu|rnd|roll|qm]" \
+ "(-L --fanout-opts)"{-L,--fanout-opts}"[Additional fanout options: defrag|roll]" \
"(-f --filter)"{-f,--filter}"[Use BPF filter file from bpfc or tcpdump-like expression]" \
"(-t --type)"{-t,--type}"[Filter type]:filter:(host broadcast multicast others outgoing)" \
"(-F --interval)"{-F,--interval}"[Dump interval if -o is a dir: <num>KiB/MiB/GiB/s/sec/min/hrs]:interval:_gnu_generic" \