forked from extern/shorewall_code
Reword error message when tcclass MARK is too large
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2b7ef0fe32
commit
35a22eedac
@ -674,7 +674,7 @@ sub validate_tc_class( ) {
|
|||||||
$markval = numeric_value( $mark );
|
$markval = numeric_value( $mark );
|
||||||
fatal_error "Invalid MARK ($markval)" unless defined $markval;
|
fatal_error "Invalid MARK ($markval)" unless defined $markval;
|
||||||
|
|
||||||
fatal_error "Invalid Mark ($mark)" unless $markval <= $globals{TC_MAX};
|
fatal_error "MARK value too large" unless $markval <= $globals{TC_MAX};
|
||||||
fatal_error "MARK value must be non-zero" unless $markval;
|
fatal_error "MARK value must be non-zero" unless $markval;
|
||||||
|
|
||||||
if ( $classnumber ) {
|
if ( $classnumber ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user