Commit 6db8c5a6 authored by Martin Mareš's avatar Martin Mareš

pxlen works even in IPv6 mode.

parent 5dc4b0aa
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment