]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Permit pool size of /64.../112 for ifconfig-ipv6-pool
authorGert Doering <gert@greenie.muc.de>
Sun, 20 Jan 2013 18:50:38 +0000 (20:50 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 14 Mar 2013 15:26:37 +0000 (16:26 +0100)
(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

src/openvpn/options.c

index 8592955ff5fa02231c0b6544401f48e16febcd19..8857ed8d2f87235ba7f66c6728e553e0071aab63 100644 (file)
@@ -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;
        }