Yet another fix for TTL/HL

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-09-24 16:23:15 -07:00
parent a8f324b25c
commit bac0f36818

View File

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