From: Gert Doering Date: Sun, 20 Jan 2013 18:50:38 +0000 (+0200) Subject: Permit pool size of /64.../112 for ifconfig-ipv6-pool X-Git-Tag: v2.3.1~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fb2391660a369853f20fd4807eaa5ed3461e755;p=thirdparty%2Fopenvpn.git Permit pool size of /64.../112 for ifconfig-ipv6-pool (Leftover check from the early days where --server-ipv6 also only accepted /64 - nowadays we handle smaller pools just fine) Signed-off-by: Gert Doering Acked-by: Arne Schwabe Message-Id: <20130120185030.GR22465@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/7269 (cherry picked from commit 704d9273b6e0e253b62eb728fddd5bbb02503eea) --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 8592955ff..8857ed8d2 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -5488,9 +5488,9 @@ add_option (struct options *options, msg (msglevel, "error parsing --ifconfig-ipv6-pool parameters"); goto err; } - if ( netbits != 64 ) + if ( netbits < 64 || netbits > 112 ) { - msg( msglevel, "--ifconfig-ipv6-pool settings: only /64 supported right now (not /%d)", netbits ); + msg( msglevel, "--ifconfig-ipv6-pool settings: only /64../112 supported right now (not /%d)", netbits ); goto err; }