mirror of
https://gitlab.com/shorewall/code.git
synced 2025-03-07 19:11:51 +01:00
Another attempt at the IPMARK fix
This commit is contained in:
parent
a71136fd5a
commit
2852cdeb53
@ -331,13 +331,13 @@ sub process_tc_rule( ) {
|
|||||||
if ( defined $m1 && $m1 ne '' ) {
|
if ( defined $m1 && $m1 ne '' ) {
|
||||||
$val = numeric_value ($m1);
|
$val = numeric_value ($m1);
|
||||||
fatal_error "Invalid Mask ($m1)" unless defined $val && $val && $val <= 0xffffffff;
|
fatal_error "Invalid Mask ($m1)" unless defined $val && $val && $val <= 0xffffffff;
|
||||||
$mask1 = in_hex ( $m1 & 0xffffffff );
|
$mask1 = in_hex ( $val & 0xffffffff );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( defined $m2 && $m2 ne '' ) {
|
if ( defined $m2 && $m2 ne '' ) {
|
||||||
$val = numeric_value ($m2);
|
$val = numeric_value ($m2);
|
||||||
fatal_error "Invalid Mask ($m2)" unless defined $val && $val <= 0xffffffff;
|
fatal_error "Invalid Mask ($m2)" unless defined $val && $val <= 0xffffffff;
|
||||||
$mask2 = in_hex ( $m2 & 0xffffffff );
|
$mask2 = in_hex ( $val & 0xffffffff );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( defined $s ) {
|
if ( defined $s ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user