netsniff-ng: enable jumbo frames on default in tpacket_v3
[netsniff-ng.git] / astraceroute.zsh
blob28fa24a82bbf96ddaa9cf4936e1ac27cc4851e97
1 #compdef astraceroute
3 # astraceroute.zsh -- zsh completion function for astraceroute
5 # Copyright (C) 2013 Hideo Hattori <hhatto.jp@gmail.com>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 2 as
9 # published by the Free Software Foundation.
11 typeset -A opt_args
13 _interfaces () {
14 _wanted interfaces expl 'network interface' \
15 _net_interfaces
16 _values "Pseudo-device that captures on all interfaces" "any"
19 _arguments -s -S \
20 "(-H --host)"{-H,--host}"[Host/IPv4/IPv6 to lookup AS route to]:host:_hosts" \
21 "(-p --port)"{-p,--port}"[Hosts port to lookup AS route to]:port:_gnu_generic" \
22 "(-i -d --dev)"{-i,-d,--dev}"[Networking device i.e., eth0]:device:_interfaces" \
23 "(-4 --ipv4)"{-4,--ipv4}"[Use IPv4 requests (default)]" \
24 "(-6 --ipv6)"{-6,--ipv6}"[Use IPv6 requests]" \
25 "(-n --numeric)"{-n,--nemeric}"[Do not do reverse DNS lookup for hops]" \
26 "(-N --dns)"{-N,--dns}"[Do a reverse DNS lookup for hops]" \
27 "(-f --init-ttl)"{-f,--init-ttl}"[Set initial TTL]:ttl:_gnu_generic" \
28 "(-m --max-ttl)"{-m,--max--ttl}"[Set maximum TTL]:ttl:_gnu_generic" \
29 "(-q --num-probes)"{-q,--num-probes}"[Set maximum TTL (default: 30)]:ttl:_gnu_generic" \
30 "(-q --num-probes)"{-q,--num-probes}"[Number of max probes for each hop (default: 3)]:num:_gnu_generic" \
31 "(-x --timeout)"{-x,--timeout}"[Probe response timeout in sec (default: 3)]:timeout:_gnu_generic" \
32 "(-S --syn)"{-S,--syn}"[Set TCP SYN flag in packets]" \
33 "(-A --ack)"{-A,--ack}"[Set TCP ACK flag in packets]" \
34 "(-F --fin)"{-F,--fin}"[Set TCP FIN flag in packets]" \
35 "(-P --psh)"{-P,--psh}"[Set TCP PSH flag in packets]" \
36 "(-U --urg)"{-U,--urg}"[Set TCP URG flag in packets]" \
37 "(-R --rst)"{-R,--rst}"[Set TCP RST flag in packets]" \
38 "(-E --ecn-syn)"{-E,--ecn-syn}"[Send ECN SYN packets (RFC3168)]" \
39 "(-t --tos)"{-t,--tos}"[Set the IP TOS field]:tos:_gnu_generic" \
40 "(-G --nofrag)"{-G,--nofrag}"[Set do not fragment bit]" \
41 "(-X --payload)"{-X,--payload}"[Specify a payload string to test DPIs]:string:_gnu_generic" \
42 "(-Z --show-packet)"{-Z,--show-packet}"[Show returned packet on each hop]" \
43 "(-l --totlen)"{-l,--totlen}"[Specify total packet len]:lengths:_gnu_generic" \
44 "(-w --whois)"{-w,--whois}"[Use a different AS whois DB server (default: /etc/netsniff-ng/whois.conf)]:file:_files" \
45 "(-W --wport)"{-W,--wport}"[Use a different port to AS whois server (default: /etc/netsniff-ng/whois.conf)]:file:_files" \
46 "--city-db[Specifiy path for geoip city database]:path:_files" \
47 "--country-db[Specifiy path for geoip country database]:path:_files" \
48 {-v,--version}"[Print version]:" \
49 {-h,--help}"[Print this help]:" \
50 "*::args:_gnu_generic"