forked from extern/shorewall_code
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:
parent
d8a0db63bd
commit
44545e71fe
@ -14,6 +14,8 @@ Changes in 4.1.3
|
|||||||
|
|
||||||
7) Detect lack of interfaces and IPv4 zones.
|
7) Detect lack of interfaces and IPv4 zones.
|
||||||
|
|
||||||
|
8) Classify marked traffic using tc filter rules.
|
||||||
|
|
||||||
Changes in 4.1.2
|
Changes in 4.1.2
|
||||||
|
|
||||||
1) Enhanced Operational Logging
|
1) Enhanced Operational Logging
|
||||||
|
@ -43,6 +43,10 @@ Other changes in Shorewall 4.1.3.
|
|||||||
3) Shorewall-perl now generates fatal error conditions when there are
|
3) Shorewall-perl now generates fatal error conditions when there are
|
||||||
no IPv4 zones defined and when there are no interfaces defined.
|
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.
|
Migration Issues.
|
||||||
|
|
||||||
1) Previously, when HIGH_ROUTE_MARKS=Yes, Shorewall allowed non-zero
|
1) Previously, when HIGH_ROUTE_MARKS=Yes, Shorewall allowed non-zero
|
||||||
|
@ -497,7 +497,7 @@ sub setup_traffic_shaping() {
|
|||||||
my $devref = $tcdevices{$device};
|
my $devref = $tcdevices{$device};
|
||||||
my $tcref = $tcclasses{$device}{$mark};
|
my $tcref = $tcclasses{$device}{$mark};
|
||||||
my $devnum = $devref->{number};
|
my $devnum = $devref->{number};
|
||||||
my $classid = "$devnum:${prefix}${mark}";
|
my $classid = join( '', $devnum, ':', $prefix, $mark);
|
||||||
my $rate = $tcref->{rate};
|
my $rate = $tcref->{rate};
|
||||||
my $quantum = calculate_quantum $rate, calculate_r2q( $devref->{out_bandwidth} );
|
my $quantum = calculate_quantum $rate, calculate_r2q( $devref->{out_bandwidth} );
|
||||||
my $dev = chain_base $device;
|
my $dev = chain_base $device;
|
||||||
@ -522,9 +522,7 @@ sub setup_traffic_shaping() {
|
|||||||
#
|
#
|
||||||
# add filters
|
# add filters
|
||||||
#
|
#
|
||||||
unless ( $devref->{classify} ) {
|
emit "run_tc filter add dev $device protocol ip parent $devnum:0 prio 1 handle $mark fw classid $classid" unless $devref->{classify};
|
||||||
emit "run_tc filter add dev $device protocol ip parent $devnum:0 prio 1 handle $mark fw classid $classid";
|
|
||||||
}
|
|
||||||
#
|
#
|
||||||
#options
|
#options
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user