mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 16:50:25 -04:00
pfctl: Allow TOS bits to be cleared
TOS value 0 is valid, so use 256 as an invalid value rather than zero. This allows users to enforce TOS == 0 with pf. Reported by: Radek Krejča <radek.krejca@starnet.cz>
This commit is contained in:
parent
fa04428122
commit
f5dde2a92f
1 changed files with 1 additions and 1 deletions
|
|
@ -3607,7 +3607,7 @@ tos : STRING {
|
|||
}
|
||||
| NUMBER {
|
||||
$$ = $1;
|
||||
if (!$$ || $$ > 255) {
|
||||
if ($$ < 0 || $$ > 255) {
|
||||
yyerror("illegal tos value %s", $1);
|
||||
YYERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue