From 82913abecad0b0c3e6dccc14b2f5b689d920d1ac Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 23 Jan 2011 09:23:17 -0800 Subject: [PATCH] Specify 'mpu' when creating TBF --- Shorewall/Perl/Shorewall/Tc.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index db384cafc..7220ed1c6 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -543,6 +543,8 @@ sub process_simple_device() { $command .= ' latency 200ms'; } + $command .= ' mpu 64'; #Assume Ethernet + if ( defined $peak && $peak ne '' ) { fatal_error "Invalid peak ($peak)" unless $peak =~ /^\d+(?:\.\d+)?(k|kb|m|mb|mbit|kbit|b)?$/; $command .= " peakrate $peak";