pxlen works even in IPv6 mode.
This commit is contained in:
parent
5dc4b0aae2
commit
6db8c5a63b
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ bool:
|
||||||
|
|
||||||
pxlen:
|
pxlen:
|
||||||
'/' NUM {
|
'/' 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;
|
$$ = $2;
|
||||||
}
|
}
|
||||||
| ':' IPA {
|
| ':' IPA {
|
||||||
|
|
Loading…
Reference in a new issue