mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-20 05:11:03 +01:00
More fixes for HL and TTL
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6d0142525c
commit
b451e10dd8
@ -402,7 +402,7 @@ sub process_tc_rule( ) {
|
|||||||
|
|
||||||
my $param = $1;
|
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 =~ /^\+/ ) {
|
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 $2 && ( $param = abs $param ) < 256;
|
fatal_error "Invalid HL specification( $cmd )" unless ( $1 eq $2 || $2 != 0 ) && ( $param = abs $param ) < 256;
|
||||||
|
|
||||||
if ( $1 =~ /^\+/ ) {
|
if ( $1 =~ /^\+/ ) {
|
||||||
$target .= " --hl-inc $param";
|
$target .= " --hl-inc $param";
|
||||||
|
Loading…
Reference in New Issue
Block a user