]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Implement IPv6 interface config with non-/64 prefix lengths.
authorGert Doering <gert@greenie.muc.de>
Fri, 3 Feb 2012 16:11:03 +0000 (17:11 +0100)
committerDavid Sommerseth <davids@redhat.com>
Sat, 4 Feb 2012 12:16:06 +0000 (13:16 +0100)
commitc55e9562d64f381ba46b83a02503f6239e23d3ef
tree4c14cd06ec90e414a69ef7fa6cc3de2fdea20b30
parent6ba68180b89e0290855f70832243fc9b4370e4d2
Implement IPv6 interface config with non-/64 prefix lengths.

Add "ifconfig_ipv6_netbits_parm" parameter to init_tun(), use that to
initialize tt->netbits_ipv6 (previously: always /64).  Actual interface
setup code already used tt->netbits_ipv6, so no changes needed there.

Remove restrictions on "/netbits" value for --server-ipv6 config option
(can now be /64.../112, previously had to be exactly /64).  Supporting
even smaller networks could cause problems with ipv6-pool handling and
are only allowed for explicit "ifconfig-ipv6", not for "server-ipv6".

Add /netbits to pushed "ifconfig-ipv6" values on server side (client
side always accepted this, but ignored it so far, so this does not
break compatibility).

Tested on Linux/ifconfig, Linux/iproute2 and FreeBSD 7.4

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
TODO.IPv6
helper.c
init.c
options.c
push.c
tun.c
tun.h