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 {