#compdef curvetun # # curvetun.zsh -- zsh completion function for curvetun # # 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 \ "(-k --keygen)"{-k,--keygen}"[Generate public/private keypair]" \ "(-x --export)"{-x,--export}"[Export your public data for remote servers]" \ "(-C --dumpc)"{-C,--dumpc}"[Dump parsed clients]" \ "(-S --dumps)"{-S,--dumps}"[Dump parsed servers]" \ "(-D --nofork)"{-D,--nofork}"[Do not daemonize]" \ "(-d --dev)"{-d,--dev}"[Networking tunnel device, e.g. tun0]:device:_interfaces" \ {-v,--version}"[Print version]:" \ {-h,--help}"[Print this help]:" \ "(-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" \ "(-c --client -s --server)"{-s,--server}"[Server mode]" \ "(-c --client -N --no-logging)"{-N,--no-logging}"[Disable server logging (for better anonymity)]" \ "(-c --client -p --port)"{-p,--port}"[Port number (mandatory)]:port:_gnu_generic" \ "(-c --client -t --stun)"{-t,--stun}"[Show public IP/Port mapping via STUN]:stun:_gnu_generic" \ "(-c --client -u --udp)"{-u,--udp}"[Use UDP as carrier instead of TCP]" \ "(-c --client -4 --ipv4)"{-4,--ipv4}"[Tunnel devices are IPv4]" \ "(-c --client -6 --ipv6)"{-6,--ipv6}"[Tunnel devices are IPv6 (default: same as carrier protocol)]" \ "*::args:_gnu_generic" ss='active' href='/cgit.cgi/linux/net-next.git/commit/?id=013e8167899d389075160412a8c0c5e0581e1f13'>commitdiff
diff options
context:
space:
mode:
authorDavid Lebrun <david.lebrun@uclouvain.be>2017-02-02 11:29:38 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-03 11:05:23 -0500
commit013e8167899d389075160412a8c0c5e0581e1f13 (patch)
treed281ac584151c7116a7dfa29cfb4565d1d491e4e
parentcafe8df8b9bc9aa3dffa827c1a6757c6cd36f657 (diff)
ipv6: sr: remove cleanup flag and fix HMAC computation
In the latest version of the IPv6 Segment Routing IETF draft [1] the cleanup flag is removed and the flags field length is shrunk from 16 bits to 8 bits. As a consequence, the input of the HMAC computation is modified in a non-backward compatible way by covering the whole octet of flags instead of only the cleanup bit. As such, if an implementation compatible with the latest draft computes the HMAC of an SRH who has other flags set to 1, then the HMAC result would differ from the current implementation. This patch carries those modifications to prevent conflict with other implementations of IPv6 SR. [1] https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-05 Signed-off-by: David Lebrun <david.lebrun@uclouvain.be> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/uapi/linux/seg6.h9
-rw-r--r--net/ipv6/exthdrs.c31
-rw-r--r--net/ipv6/seg6_hmac.c8
3 files changed, 10 insertions, 38 deletions
diff --git a/include/uapi/linux/seg6.h b/include/uapi/linux/seg6.h