Another attempt at the IPMARK fix

This commit is contained in:
Tom Eastep 2011-05-29 14:42:23 -07:00
parent a71136fd5a
commit 2852cdeb53

View File

@ -331,13 +331,13 @@ sub process_tc_rule( ) {
if ( defined $m1 && $m1 ne '' ) {
$val = numeric_value ($m1);
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 '' ) {
$val = numeric_value ($m2);
fatal_error "Invalid Mask ($m2)" unless defined $val && $val <= 0xffffffff;
$mask2 = in_hex ( $m2 & 0xffffffff );
$mask2 = in_hex ( $val & 0xffffffff );
}
if ( defined $s ) {