Fix Steven's other nit regarding -0x...

This commit is contained in:
Tom Eastep 2009-04-20 20:39:38 -07:00
parent 82bf6eb3f5
commit 846af27ebf

View File

@ -316,12 +316,14 @@ sub process_tc_rule( $$$$$$$$$$$$ ) {
if ( defined $m1 && $m1 ne '' ) {
$val = numeric_value ($m1);
fatal_error "Invalid Mask ($m1)" if $m1 =~ /^-0x/;
fatal_error "Invalid Mask ($m1)" unless defined $val && $val && $val <= 0xffffffff;
$mask1 = $m1;
}
if ( defined $m2 && $m2 ne '' ) {
$val = numeric_value ($m2);
fatal_error "Invalid Mask ($m2)" if $m2 =~ /^-0x/;
fatal_error "Invalid Mask ($m2)" unless defined $val && $val <= 0xffffffff;
$mask2 = $m2;
}