summaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-29 09:36:34 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-10-29 09:36:34 +0100
commitfbcbfac1878fd6b21a5d40ff79a7b86feed08e97 (patch)
tree0f8638d1c7ee1bb0233b9da233f1dacff1644e50 /.zsh
parent8431852cbed2e736e9c6a5561e822c160a118a0d (diff)
completion: Update completitions for netsniff-ng tools
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/completion/_astraceroute.zsh8
-rw-r--r--.zsh/completion/_bpfc.zsh4
-rw-r--r--.zsh/completion/_flowtop.zsh8
-rw-r--r--.zsh/completion/_ifpps.zsh6
-rw-r--r--.zsh/completion/_mausezahn.zsh5
-rw-r--r--.zsh/completion/_netsniff-ng.zsh7
-rw-r--r--.zsh/completion/_trafgen.zsh8
7 files changed, 30 insertions, 16 deletions
diff --git a/.zsh/completion/_astraceroute.zsh b/.zsh/completion/_astraceroute.zsh
index 2354544..4c65794 100644
--- a/.zsh/completion/_astraceroute.zsh
+++ b/.zsh/completion/_astraceroute.zsh
@@ -20,15 +20,15 @@ _arguments -s -S \
"(-H --host)"{-H,--host}"[Host/IPv4/IPv6 to lookup AS route to]:host:_hosts" \
"(-p --port)"{-p,--port}"[Hosts port to lookup AS route to]:port:_gnu_generic" \
"(-i -d --dev)"{-i,-d,--dev}"[Networking device i.e., eth0]:device:_interfaces" \
+ "(-b --bind)"{-b,--bind}"[IP address to bind to, Must specify -6 for an IPv6 address]" \
"(-4 --ipv4)"{-4,--ipv4}"[Use IPv4 requests (default)]" \
"(-6 --ipv6)"{-6,--ipv6}"[Use IPv6 requests]" \
"(-n --numeric)"{-n,--numeric}"[Do not do reverse DNS lookup for hops]" \
"(-u --update)"{-u,--update}"[Update GeoIP databases]" \
- "(-L --latitude)"{-L,--latitude}"[Show latitude and longtitude]" \
+ "(-L --latitude)"{-L,--latitude}"[Show latitude and longitude]" \
"(-N --dns)"{-N,--dns}"[Do a reverse DNS lookup for hops]" \
"(-f --init-ttl)"{-f,--init-ttl}"[Set initial TTL]:ttl:_gnu_generic" \
"(-m --max-ttl)"{-m,--max--ttl}"[Set maximum TTL]:ttl:_gnu_generic" \
- "(-q --num-probes)"{-q,--num-probes}"[Set maximum TTL (default: 30)]:ttl:_gnu_generic" \
"(-q --num-probes)"{-q,--num-probes}"[Number of max probes for each hop (default: 3)]:num:_gnu_generic" \
"(-x --timeout)"{-x,--timeout}"[Probe response timeout in sec (default: 3)]:timeout:_gnu_generic" \
"(-S --syn)"{-S,--syn}"[Set TCP SYN flag in packets]" \
@@ -43,6 +43,6 @@ _arguments -s -S \
"(-X --payload)"{-X,--payload}"[Specify a payload string to test DPIs]:string:_gnu_generic" \
"(-Z --show-packet)"{-Z,--show-packet}"[Show returned packet on each hop]" \
"(-l --totlen)"{-l,--totlen}"[Specify total packet len]:lengths:_gnu_generic" \
- {-v,--version}"[Print version]:" \
- {-h,--help}"[Print this help]:" \
+ {-v,--version}"[Print version and exit]:" \
+ {-h,--help}"[Print help and exit]:" \
"*::args:_gnu_generic"
diff --git a/.zsh/completion/_bpfc.zsh b/.zsh/completion/_bpfc.zsh
index 04f04e7..2685bad 100644
--- a/.zsh/completion/_bpfc.zsh
+++ b/.zsh/completion/_bpfc.zsh
@@ -17,6 +17,6 @@ _arguments -s -S \
"(-b --bypass)"{-b,--bypass}"[Bypass filter validation (e.g. for bug testing)]" \
"(-d --dump)"{-d,--dump}"[Dump supported instruction table]" \
"(-V --verbose)"{-V,--verbose}"[Be more verbose]" \
- {-v,--version}"[Print version]:" \
- {-h,--help}"[Print this help]:" \
+ {-v,--version}"[Print version and exit]:" \
+ {-h,--help}"[Print help and exit]:" \
"*::args:_gnu_generic"
diff --git a/.zsh/completion/_flowtop.zsh b/.zsh/completion/_flowtop.zsh
index 878931c..c430748 100644
--- a/.zsh/completion/_flowtop.zsh
+++ b/.zsh/completion/_flowtop.zsh
@@ -18,8 +18,12 @@ _arguments -s -S \
"(-D --dccp)"{-D,--dccp}"[Show only DCCP flows]" \
"(-I --icmp)"{-I,--icmp}"[Show only ICMP/ICMPv6 flows]" \
"(-S --sctp)"{-S,--sctp}"[Show only SCTP flows]" \
+ "(-n --no-dns)"{-n,--no-dns}"[Don't perform hostname lookup]" \
+ "(-G --no-geoip)"{-G,--no-geoip}"[Don't perform GeoIPlookup]" \
"(-s --show-src)"{-s,--show-src}"[Also show source, not only dest]" \
+ "(-b --bits)"{-b,--bits}"[Show rates in bits/s instead of bytes/s]" \
"(-u --update)"{-u,--update}"[Update GeoIP databases]" \
- {-v,--version}"[Print version]:" \
- {-h,--help}"[Print this help]:" \
+ "(-t --interval)"{-t,--interval}"[Refresh time in seconds (def: 1s)]:interval:_gnu_generic" \
+ {-v,--version}"[Print version and exit]:" \
+ {-h,--help}"[Print help and exit]:" \
"*::args:_gnu_generic"
diff --git a/.zsh/completion/_ifpps.zsh b/.zsh/completion/_ifpps.zsh
index 83de153..a1b3dd4 100644
--- a/.zsh/completion/_ifpps.zsh
+++ b/.zsh/completion/_ifpps.zsh
@@ -19,12 +19,14 @@ _interfaces () {
_arguments -s -S \
"(-d --dev)"{-d,--dev}"[Device to fetch statistics for i.e., eth0]:device:_interfaces" \
"(-p --promisc)"{-p,--promisc}"[Promiscuous mode]" \
+ "(-P --percentage)"{-P,--percentage}"[Show percentage of theoretical line rate]" \
"(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \
"(-n --num-cpus)"{-n,--num-cpus}"[Number of top hitter CPUs to display in ncurses mode (default 10)]" \
"(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \
"(-l --loop)"{-l,--loop}"[Loop terminal output]" \
+ "(-o --omit-header)"{-o,--omit-header}"[Do not print the CSV header]" \
"(-m --median)"{-m,--median}"[Display median values]" \
"(-W --no-warn)"{-W,--no-warn}"[Suppress warnings]" \
- {-v,--version}"[Print version]:" \
- {-h,--help}"[Print this help]:" \
+ {-v,--version}"[Print version and exit]:" \
+ {-h,--help}"[Print help and exit]:" \
"*::args:_gnu_generic"
diff --git a/.zsh/completion/_mausezahn.zsh b/.zsh/completion/_mausezahn.zsh
index 95a9e35..57a56a1 100644
--- a/.zsh/completion/_mausezahn.zsh
+++ b/.zsh/completion/_mausezahn.zsh
@@ -42,6 +42,7 @@ _interfaces () {
_arguments -s -S \
"-x[Interactive mode with telnet CLI, default port: 25542]" \
+ "-l[Listen address in interactive mode, default: 0.0.0.0]" \
"(-6)-4[IPv4 mode (default)]" \
"(-4)-6[IPv6 mode]" \
"-c[Send packet count times, default:1, infinite:0]" \
@@ -62,6 +63,6 @@ _arguments -s -S \
"(-V -VV -VVV)"{-V,-VV,-VVV}"[Verbose and more verbose mode]" \
"-q[Quiet mode, even omit 'important' standard short messages]" \
"-S[Simulation mode: DOES NOT put anything on the wire, this is typically combined with one of the verbose modes (v or V)]" \
- "-v[Show version]:" \
- "-h[Print this help]:" \
+ "-v[Show version and exit]:" \
+ "-h[Print help and exit]:" \
"*::args:_gnu_generic"
diff --git a/.zsh/completion/_netsniff-ng.zsh b/.zsh/completion/_netsniff-ng.zsh
index 122d661..f658811 100644
--- a/.zsh/completion/_netsniff-ng.zsh
+++ b/.zsh/completion/_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" \
@@ -43,10 +46,12 @@ _arguments -s -S \
"(-n --num)"{-n,--num}"[Number of packets until exit (def: 0)]" \
"(-P --prefix)"{-P,--prefix}"[Prefix for pcaps stored in directory]" \
"(-T --magic)"{-T,--magic}"[Pcap magic number/pcap format to store, see -D]" \
+ "(-w --cooked)"{-w,--cooked}"[Use Linux \"cooked\" header instead of link header]" \
"(-D --dump-pcap-types)"{-D,--dump-pcap-types}"[Dump pcap types and magic numbers and quit]" \
"(-B --dump-bpf)"{-B,--dump-bpf}"[Dump generated BPF assembly]" \
"(-r --rand)"{-r,--rand}"[Randomize packet forwarding order (dev->dev)]" \
"(-M --no-promisc)"{-M,--no-promisc}"[No promiscuous mode for netdev]" \
+ "(-N --no-hwtimestamp)"{-N,--no-hwtimestamp}"[Disable hardware timestamping]" \
"(-A --no-sock-mem)"{-A,--no-sock-mem}"[Don\'t tune core socket memory]" \
"(-m --mmap)"{-m,--mmap}"[Mmap(2) pcap file i.e., for replaying pcaps]" \
"(-G --sg)"{-G,--sg}"[Scatter/gather pcap file I/O]" \
@@ -64,6 +69,6 @@ _arguments -s -S \
"(-l --ascii)"{-l,--ascii}"[Print human-readable packet data]" \
"(-U --update)"{-U,--update}"[Update GeoIP databases]" \
"(-V --verbose)"{-V,--verbose}"[Be more verbose]" \
- {-v,--version}"[Show version]:" \
+ {-v,--version}"[Show version and exit]:" \
{-h,--help}"[Guess what?!]:" \
"*::args:_gnu_generic"
diff --git a/.zsh/completion/_trafgen.zsh b/.zsh/completion/_trafgen.zsh
index 8fd1a37..57dcf8c 100644
--- a/.zsh/completion/_trafgen.zsh
+++ b/.zsh/completion/_trafgen.zsh
@@ -42,15 +42,17 @@ _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]" \
"(-u --user)"{-u,--user}"[Drop privileges and change to userid]:user:_user_info" \
"(-g --group)"{-g,--group}"[Drop privileges and change to groupid]:group:_group_info" \
+ "(-H --prio-high)"{-H,--prio-high}"[Make this high priority process]" \
+ "(-A --no-sock-mem)"{-A,--no-sock-mem}"[Do not change default socket memory setting]" \
+ "(-Q --notouch-irq)"{-Q,--notouch-irq}"[Do not touch IRQ CPU affinity of NIC]" \
"(-e --example)"{-e,--example}"[Show built-in packet config example]:" \
"(-V --verbose)"{-V,--verbose}"[Be more verbose]" \
"(-C --no-cpu-stats)"{-C,--no-cpu-stats}"[Do not print CPU time statistics on exit]" \
- {-v,--version}"[Show version]:" \
+ {-v,--version}"[Show version and exit]:" \
{-h,--help}"[Guess what?!]:" \
"*::args:_gnu_generic"