mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
Cleanup of new IN-BANDWIDTH handling (avoids a syntax error)
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4d83201843
commit
dbe936c7c9
@ -573,14 +573,14 @@ sub process_in_bandwidth( $ ) {
|
|||||||
|
|
||||||
sub handle_in_bandwidth( $$ ) {
|
sub handle_in_bandwidth( $$ ) {
|
||||||
my ($physical, $arrayref ) = @_;;
|
my ($physical, $arrayref ) = @_;;
|
||||||
my ($in_rate, $in_burst, $in_avrate, $interval, $decay ) = @$arrayref;
|
my ($in_rate, $in_burst, $in_avrate, $in_interval, $in_decay ) = @$arrayref;
|
||||||
|
|
||||||
emit ( "run_tc qdisc add dev $physical handle ffff: ingress",
|
emit ( "run_tc qdisc add dev $physical handle ffff: ingress",
|
||||||
"run_tc filter add dev $physical parent ffff: protocol all prio 10 " .
|
"run_tc filter add dev $physical parent ffff: protocol all prio 10 " .
|
||||||
"\\\n estimator $interval $decay basic\\" );
|
"\\\n estimator $in_interval $in_decay basic\\" );
|
||||||
|
|
||||||
if ( $in_rate ) {
|
if ( $in_rate ) {
|
||||||
emit( " police mpu 64 rate ${rate}kbit burst $in_burst action drop\n" );
|
emit( " police mpu 64 rate ${in_rate}kbit burst $in_burst action drop\n" );
|
||||||
} else {
|
} else {
|
||||||
emit( " police avrate ${in_avrate}kbit action drop\n" );
|
emit( " police avrate ${in_avrate}kbit action drop\n" );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user