flowtop: Print error cause if errno is set when panic
[netsniff-ng.git] / curvetun.zsh
blob16a1fd332212c01bd9d773458393013570035a43
1 #compdef curvetun
3 # curvetun.zsh -- zsh completion function for curvetun
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 "(-k --keygen)"{-k,--keygen}"[Generate public/private keypair]" \
21 "(-x --export)"{-x,--export}"[Export your public data for remote servers]" \
22 "(-C --dumpc)"{-C,--dumpc}"[Dump parsed clients]" \
23 "(-S --dumps)"{-S,--dumps}"[Dump parsed servers]" \
24 "(-D --nofork)"{-D,--nofork}"[Do not daemonize]" \
25 "(-d --dev)"{-d,--dev}"[Networking tunnel device, e.g. tun0]:device:_interfaces" \
26 {-v,--version}"[Print version]:" \
27 {-h,--help}"[Print this help]:" \
28 "(-s --server -N --no-logging -p --port -t --stun -u --udp -4 --ipv4 -6 --ipv6 -c --client)"{-c,--client}"[Client mode, server alias optional]:client:_gnu_generic" \
29 "(-c --client -s --server)"{-s,--server}"[Server mode]" \
30 "(-c --client -N --no-logging)"{-N,--no-logging}"[Disable server logging (for better anonymity)]" \
31 "(-c --client -p --port)"{-p,--port}"[Port number (mandatory)]:port:_gnu_generic" \
32 "(-c --client -t --stun)"{-t,--stun}"[Show public IP/Port mapping via STUN]:stun:_gnu_generic" \
33 "(-c --client -u --udp)"{-u,--udp}"[Use UDP as carrier instead of TCP]" \
34 "(-c --client -4 --ipv4)"{-4,--ipv4}"[Tunnel devices are IPv4]" \
35 "(-c --client -6 --ipv6)"{-6,--ipv6}"[Tunnel devices are IPv6 (default: same as carrier protocol)]" \
36 "*::args:_gnu_generic"