0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

pxlen works even in IPv6 mode.

This commit is contained in:
Martin Mares 2000-05-04 20:02:19 +00:00
parent 5dc4b0aae2
commit 6db8c5a63b

View 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 {