Browse code

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 <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20130120185030.GR22465@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7269
(cherry picked from commit 704d9273b6e0e253b62eb728fddd5bbb02503eea)

Gert Doering authored on 2013/01/21 03:50:38
Showing 1 changed files
... ...
@@ -5488,9 +5488,9 @@ add_option (struct options *options,
5488 5488
 	  msg (msglevel, "error parsing --ifconfig-ipv6-pool parameters");
5489 5489
 	  goto err;
5490 5490
 	}
5491
-      if ( netbits != 64 )
5491
+      if ( netbits < 64 || netbits > 112 )
5492 5492
 	{
5493
-	  msg( msglevel, "--ifconfig-ipv6-pool settings: only /64 supported right now (not /%d)", netbits );
5493
+	  msg( msglevel, "--ifconfig-ipv6-pool settings: only /64../112 supported right now (not /%d)", netbits );
5494 5494
 	  goto err;
5495 5495
 	}
5496 5496