mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 10:11:16 +01:00
A couple of tweaks to 'limit' class option
This commit is contained in:
parent
105754823a
commit
59d01ccf97
@ -763,7 +763,7 @@ sub validate_tc_class( ) {
|
|||||||
$tcref->{occurs} = $occurs;
|
$tcref->{occurs} = $occurs;
|
||||||
$devref->{occurs} = 1;
|
$devref->{occurs} = 1;
|
||||||
} elsif ( $option =~ /^limit=(\d+)$/ ) {
|
} elsif ( $option =~ /^limit=(\d+)$/ ) {
|
||||||
warning_message "limit ignore with pfifo queuing" if $tcref->{pfifo};
|
warning_message "limit ignored with pfifo queuing" if $tcref->{pfifo};
|
||||||
fatal_error "Invalid limit ($1)" if $1 < 3 || $1 > 128;
|
fatal_error "Invalid limit ($1)" if $1 < 3 || $1 > 128;
|
||||||
$tcref->{limit} = $1;
|
$tcref->{limit} = $1;
|
||||||
} else {
|
} else {
|
||||||
@ -794,6 +794,7 @@ sub validate_tc_class( ) {
|
|||||||
pfifo => $tcref->{pfifo},
|
pfifo => $tcref->{pfifo},
|
||||||
occurs => 0,
|
occurs => 0,
|
||||||
parent => $parentclass,
|
parent => $parentclass,
|
||||||
|
limit => $tcref->{limit},
|
||||||
};
|
};
|
||||||
push @tcclasses, "$device:$classnumber";
|
push @tcclasses, "$device:$classnumber";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user