mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 19:51:40 +02:00
Specify 'mpu' when creating TBF
This commit is contained in:
parent
228eeabb7d
commit
82913abeca
@ -543,6 +543,8 @@ sub process_simple_device() {
|
|||||||
$command .= ' latency 200ms';
|
$command .= ' latency 200ms';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$command .= ' mpu 64'; #Assume Ethernet
|
||||||
|
|
||||||
if ( defined $peak && $peak ne '' ) {
|
if ( defined $peak && $peak ne '' ) {
|
||||||
fatal_error "Invalid peak ($peak)" unless $peak =~ /^\d+(?:\.\d+)?(k|kb|m|mb|mbit|kbit|b)?$/;
|
fatal_error "Invalid peak ($peak)" unless $peak =~ /^\d+(?:\.\d+)?(k|kb|m|mb|mbit|kbit|b)?$/;
|
||||||
$command .= " peakrate $peak";
|
$command .= " peakrate $peak";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user