summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astraceroute.zsh6
-rw-r--r--bpfc.zsh4
-rw-r--r--flowtop.zsh8
-rw-r--r--ifpps.zsh3
4 files changed, 13 insertions, 8 deletions
diff --git a/astraceroute.zsh b/astraceroute.zsh
index 28fa24a..c15e2c8 100644
--- a/astraceroute.zsh
+++ b/astraceroute.zsh
@@ -23,6 +23,8 @@ _arguments -s -S \
"(-4 --ipv4)"{-4,--ipv4}"[Use IPv4 requests (default)]" \
"(-6 --ipv6)"{-6,--ipv6}"[Use IPv6 requests]" \
"(-n --numeric)"{-n,--nemeric}"[Do not do reverse DNS lookup for hops]" \
+ "(-u --update)"{-u,--update}"[Update GeoIP databases]" \
+ "(-L --latitude)"{-L,--latitude}"[Show latitude and longtitude]" \
"(-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" \
@@ -41,10 +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" \
- "(-w --whois)"{-w,--whois}"[Use a different AS whois DB server (default: /etc/netsniff-ng/whois.conf)]:file:_files" \
- "(-W --wport)"{-W,--wport}"[Use a different port to AS whois server (default: /etc/netsniff-ng/whois.conf)]:file:_files" \
- "--city-db[Specifiy path for geoip city database]:path:_files" \
- "--country-db[Specifiy path for geoip country database]:path:_files" \
{-v,--version}"[Print version]:" \
{-h,--help}"[Print this help]:" \
"*::args:_gnu_generic"
diff --git a/bpfc.zsh b/bpfc.zsh
index ae6eb39..04f04e7 100644
--- a/bpfc.zsh
+++ b/bpfc.zsh
@@ -12,6 +12,10 @@ 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]" \
+ "(-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]" \
"(-V --verbose)"{-V,--verbose}"[Be more verbose]" \
{-v,--version}"[Print version]:" \
{-h,--help}"[Print this help]:" \
diff --git a/flowtop.zsh b/flowtop.zsh
index 1d1b2e7..878931c 100644
--- a/flowtop.zsh
+++ b/flowtop.zsh
@@ -11,11 +11,15 @@
typeset -A opt_args
_arguments -s -S \
+ "(-4 --ipv4)"{-4,--ipv4}"[Show only IPv4 flows (default)]" \
+ "(-6 --ipv6)"{-6,--ipv6}"[Show only IPv6 flows (default)]" \
"(-T --tcp)"{-T,--tcp}"[Show only TCP flows (default)]" \
"(-U --udp)"{-U,--udp}"[Show only UDP flows]" \
+ "(-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]" \
"(-s --show-src)"{-s,--show-src}"[Also show source, not only dest]" \
- "--city-db[Specifiy path for geoip city database]:path:_files" \
- "--country-db[Specifiy path for geoip country database]:path:_files" \
+ "(-u --update)"{-u,--update}"[Update GeoIP databases]" \
{-v,--version}"[Print version]:" \
{-h,--help}"[Print this help]:" \
"*::args:_gnu_generic"
diff --git a/ifpps.zsh b/ifpps.zsh
index a4a4a5d..87ce135 100644
--- a/ifpps.zsh
+++ b/ifpps.zsh
@@ -20,9 +20,8 @@ _arguments -s -S \
"(-d --dev)"{-d,--dev}"[Device to fetch statistics for i.e., eth0]:device:_interfaces" \
"(-p --promisc)"{-p,--promisc}"[Promiscuous mode]" \
"(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \
- "(-c --term)"{-c,--term}"[Output to terminal]" \
+ "(-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.]" \
- "(-H --csv-tablehead)"{-H,--csv-tablehead}"[Print CSV table head]" \
"(-l --loop)"{-l,--loop}"[Loop terminal output]" \
{-v,--version}"[Print version]:" \
{-h,--help}"[Print this help]:" \