Release document update; cosmetic change to Shorewall::Tc

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7936 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-12-21 22:56:36 +00:00
parent d8a0db63bd
commit 44545e71fe
3 changed files with 9 additions and 5 deletions

View File

@ -14,6 +14,8 @@ Changes in 4.1.3
7) Detect lack of interfaces and IPv4 zones.
8) Classify marked traffic using tc filter rules.
Changes in 4.1.2
1) Enhanced Operational Logging

View File

@ -43,6 +43,10 @@ Other changes in Shorewall 4.1.3.
3) Shorewall-perl now generates fatal error conditions when there are
no IPv4 zones defined and when there are no interfaces defined.
4) Shorewall now unconditionally uses tc filter rules to classify
traffic by MARK value. Previously, Shorewall used the CLASSIFY
target in the POSTROUTING chain if it was available.
Migration Issues.
1) Previously, when HIGH_ROUTE_MARKS=Yes, Shorewall allowed non-zero

View File

@ -497,7 +497,7 @@ sub setup_traffic_shaping() {
my $devref = $tcdevices{$device};
my $tcref = $tcclasses{$device}{$mark};
my $devnum = $devref->{number};
my $classid = "$devnum:${prefix}${mark}";
my $classid = join( '', $devnum, ':', $prefix, $mark);
my $rate = $tcref->{rate};
my $quantum = calculate_quantum $rate, calculate_r2q( $devref->{out_bandwidth} );
my $dev = chain_base $device;
@ -522,9 +522,7 @@ sub setup_traffic_shaping() {
#
# add filters
#
unless ( $devref->{classify} ) {
emit "run_tc filter add dev $device protocol ip parent $devnum:0 prio 1 handle $mark fw classid $classid";
}
emit "run_tc filter add dev $device protocol ip parent $devnum:0 prio 1 handle $mark fw classid $classid" unless $devref->{classify};
#
#options
#