#compdef astraceroute # # astraceroute.zsh -- zsh completion function for astraceroute # # Copyright (C) 2013 Hideo Hattori # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. typeset -A opt_args _interfaces () { _wanted interfaces expl 'network interface' \ _net_interfaces _values "Pseudo-device that captures on all interfaces" "any" } _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" \ "(-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" \ "(-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]" \ "(-A --ack)"{-A,--ack}"[Set TCP ACK flag in packets]" \ "(-F --fin)"{-F,--fin}"[Set TCP FIN flag in packets]" \ "(-P --psh)"{-P,--psh}"[Set TCP PSH flag in packets]" \ "(-U --urg)"{-U,--urg}"[Set TCP URG flag in packets]" \ "(-R --rst)"{-R,--rst}"[Set TCP RST flag in packets]" \ "(-E --ecn-syn)"{-E,--ecn-syn}"[Send ECN SYN packets (RFC3168)]" \ "(-t --tos)"{-t,--tos}"[Set the IP TOS field]:tos:_gnu_generic" \ "(-G --nofrag)"{-G,--nofrag}"[Set do not fragment bit]" \ "(-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]:" \ "*::args:_gnu_generic" on>
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-11 20:59:43 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-11 20:59:43 -0500
commitdfcb7a14866b8c34b2d3a74ae31631e1d4e7f591 (patch)
treeb7d5175e7c84f0a806b52064b34f1ef0fd780111
parent35eeacf1820a08305c2b0960febfa190f5a6dd63 (diff)
parent235a9d89da976e2975b3de9afc0bed7b72557983 (diff)
Merge branch 'ipvtap'
Sainath Grandhi says: ==================== Refactor macvtap to re-use tap functionality by other virtual intefaces Tap character devices can be implemented on other virtual interfaces like ipvlan, similar to macvtap. Source code for tap functionality in macvtap can be re-used for this purpose. This patch series splits macvtap source into two modules, macvtap and tap. This patch series also includes a patch for implementing tap character device driver based on the IP-VLAN network interface, called ipvtap. These patches are tested on x86 platform. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>