]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
pxlen works even in IPv6 mode.
authorMartin Mares <mj@ucw.cz>
Thu, 4 May 2000 20:02:19 +0000 (20:02 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 4 May 2000 20:02:19 +0000 (20:02 +0000)
conf/confbase.Y

index c303add8f29ae83dc56181326900452530413477..7ac07fea210d495e80d0aa6a38b9e1109aea7e33 100644 (file)
@@ -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 {