]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
numerous fixes for Linux IPv6 configuration using ifconfig/route/netstat
authorDaniel Lenski <dlenski@gmail.com>
Sat, 28 Nov 2020 02:27:08 +0000 (18:27 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 30 Nov 2020 19:35:08 +0000 (19:35 +0000)
commitc79fe4e2504edf378c30fcb238df550ba45a4cd3
tree7403781b1796d3c189167b8f32ba5e28da00bbfc
parent97c06de158820fb4468592ca675cf2cdb3349838
numerous fixes for Linux IPv6 configuration using ifconfig/route/netstat

Trying to ensure that none of the commands executed change in any way on the actual non-Linux OSes which
we cannot directly test with CI currently.

- add missing $route_syntax_gw
- need new syntax variants:
  - $ifconfig_syntax_add_inet6 ('add' on Linux, 'inet6' on *BSDs)
  - $route_syntax_ipv6 ('-6' on Linux, '-inet6' on *BSDs)
- special handling for IPv6 route addition deletion on Linux:
  - '-host'/-net' are REQUIRED on *BSDs but Linux 'route' rejects them
    ⇒ add $route_syntax_ipv6_{host,net} for these cases
  - Linux 'route' rejects local adapter's IPv6 address as gateway with "SIOCADDRT: invalid argument"
    ⇒ use 'dev $DEVICE' instead of 'gw $NETGW' in this case on Linux

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script