From: Martin Mares Date: Thu, 4 May 2000 20:02:19 +0000 (+0000) Subject: pxlen works even in IPv6 mode. X-Git-Tag: v1.2.0~1047 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6db8c5a63b341d0913afa44457a93a8e83529fb2;p=thirdparty%2Fbird.git pxlen works even in IPv6 mode. --- diff --git a/conf/confbase.Y b/conf/confbase.Y index c303add8f..7ac07fea2 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -111,7 +111,7 @@ bool: pxlen: '/' NUM { - if ($2 < 0 || $2 > 32) cf_error("Invalid prefix length %d", $2); + if ($2 < 0 || $2 > BITS_PER_IP_ADDRESS) cf_error("Invalid prefix length %d", $2); $$ = $2; } | ':' IPA {