From a6d2497653361049a90a6f8272dda51ac606880d Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 14 Jun 2009 14:29:12 -0700 Subject: [PATCH] Integerize r2q before using it in a 'qdisc add' command --- Shorewall/Perl/Shorewall/Tc.pm | 2 +- Shorewall/changelog.txt | 8 ++++++++ Shorewall/releasenotes.txt | 17 ++++++++++------- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 8a5b0afb9..32117dc1c 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -1017,7 +1017,7 @@ sub setup_traffic_shaping() { my $devref = $tcdevices{$device}; my $defmark = in_hexp ( $devref->{default} || 0 ); my $devnum = in_hexp $devref->{number}; - my $r2q = calculate_r2q $devref->{out_bandwidth}; + my $r2q = int calculate_r2q $devref->{out_bandwidth}; emit "if interface_is_up $device; then"; diff --git a/Shorewall/changelog.txt b/Shorewall/changelog.txt index 9e36e8c1a..0d3f4233b 100644 --- a/Shorewall/changelog.txt +++ b/Shorewall/changelog.txt @@ -1,3 +1,11 @@ +Changes in Shorewall 4.4.0-Beta2 + +1) The 'find_first_interface_address()' and + 'find_first_interface_address_if_any()' functions have been restored to + lib.base. + +2) Integerize r2q before inserting it into 'tc qdisc add root' command. + Changes in Shorewall 4.4.0-Beta1 1) Correct typo in Shorewall6 two-interface sample shorewall.conf. diff --git a/Shorewall/releasenotes.txt b/Shorewall/releasenotes.txt index 1e52d7263..d76bbe33e 100644 --- a/Shorewall/releasenotes.txt +++ b/Shorewall/releasenotes.txt @@ -1,4 +1,4 @@ -Shorewall 4.4.0 Beta 1 +Shorewall 4.4.0 Beta 2 ---------------------------------------------------------------------------- R E L E A S E 4 . 4 H I G H L I G H T S @@ -102,14 +102,17 @@ Shorewall 4.4.0 Beta 1 using NULL_ROUTE_RFC1918=Yes instead. ---------------------------------------------------------------------------- - P R O B L E M S C O R R E C T E D I N 4 . 4 . 0 Beta 1 + P R O B L E M S C O R R E C T E D I N 4 . 4 . 0 Beta 2 ---------------------------------------------------------------------------- -1) A typo in the IPv6 two-interface Sample shorewall6.conf file has - been corrected. +1) The find_first_interface_address() and + find_first_interface_addresss_if_any() functions were not in scope when + /etc/shorewall/params was processed. -2) When a valid mnemonic such as 'tos-minimize-delay' appeared in the TOS - column of /etc/shorewall/tcfilters, a compile-time error resulted. +2) The compiled script could fail with an error such as the following + when the internal traffic shaper was enabled: + + ERROR: Command "tc qdisc add dev dsl0 root handle 1: htb default 0 r2q 5.5" Failed ---------------------------------------------------------------------------- K N O W N P R O B L E M S R E M A I N I N G @@ -118,7 +121,7 @@ Shorewall 4.4.0 Beta 1 None. ---------------------------------------------------------------------------- - N E W F E A T U R E S I N 4 . 4 . 0 Beta 1 + N E W F E A T U R E S I N 4 . 4 . 0 Beta 2 ---------------------------------------------------------------------------- None.