More fixes for HL and TTL

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-09-24 14:25:31 -07:00
parent 6d0142525c
commit b451e10dd8

View File

@ -402,7 +402,7 @@ sub process_tc_rule( ) {
my $param = $1;
fatal_error "Invalid TTL specification( $cmd )" unless $2 && ( $param = abs $param ) < 256;
fatal_error "Invalid TTL specification( $cmd )" unless ( $1 eq $2 || $2 != 0 ) && ( $param = abs $param ) < 256;
if ( $1 =~ /^\+/ ) {
$target .= " --ttl-inc $param";
@ -430,7 +430,7 @@ sub process_tc_rule( ) {
my $param = $1;
fatal_error "Invalid HL specification( $cmd )" unless $2 && ( $param = abs $param ) < 256;
fatal_error "Invalid HL specification( $cmd )" unless ( $1 eq $2 || $2 != 0 ) && ( $param = abs $param ) < 256;
if ( $1 =~ /^\+/ ) {
$target .= " --hl-inc $param";