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.
|
||||
|
||||
8) Classify marked traffic using tc filter rules.
|
||||
|
||||
Changes in 4.1.2
|
||||
|
||||
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
|
||||
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
|
||||
|
@ -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;
|
||||
@ -518,13 +518,11 @@ sub setup_traffic_shaping() {
|
||||
emit ( "[ \$${dev}_mtu -gt $quantum ] && quantum=\$${dev}_mtu || quantum=$quantum",
|
||||
"run_tc class add dev $device parent $devref->{number}:1 classid $classid htb rate $rate ceil $tcref->{ceiling} prio $tcref->{priority} \$${dev}_mtu1 quantum \$quantum",
|
||||
"run_tc qdisc add dev $device parent $classid handle ${prefix}${mark}: sfq perturb 10"
|
||||
);
|
||||
);
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user