mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-04 08:55:51 +02:00
remove debugging code
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2653 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
a7691e8182
commit
f35c0922c6
@ -180,7 +180,6 @@ setup_traffic_shaping()
|
|||||||
|
|
||||||
add_tc_class() {
|
add_tc_class() {
|
||||||
local full
|
local full
|
||||||
#set -x
|
|
||||||
full=$(get_outband_for_dev $device)
|
full=$(get_outband_for_dev $device)
|
||||||
full=$(rate_to_kbit $full)
|
full=$(rate_to_kbit $full)
|
||||||
#set -x
|
#set -x
|
||||||
@ -201,7 +200,6 @@ setup_traffic_shaping()
|
|||||||
ceil="$(($ceil))kbit"
|
ceil="$(($ceil))kbit"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#set +x
|
|
||||||
|
|
||||||
ensure_and_save_command tc class add dev $device parent 1:1 classid 1:1$mark htb rate $rate ceil $ceil prio $prio quantum $(calculate_quantum $rate)
|
ensure_and_save_command tc class add dev $device parent 1:1 classid 1:1$mark htb rate $rate ceil $ceil prio $prio quantum $(calculate_quantum $rate)
|
||||||
ensure_and_save_command tc qdisc add dev $device parent 1:1$mark handle 1$mark: sfq perturb 10
|
ensure_and_save_command tc qdisc add dev $device parent 1:1$mark handle 1$mark: sfq perturb 10
|
||||||
@ -215,7 +213,6 @@ setup_traffic_shaping()
|
|||||||
list_search "tos-minimize-reliability" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip tos 0x04 0xff flowid 1:1$mark
|
list_search "tos-minimize-reliability" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip tos 0x04 0xff flowid 1:1$mark
|
||||||
list_search "tos-normal-service" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip tos 0x00 0xff flowid 1:1$mark
|
list_search "tos-normal-service" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip tos 0x00 0xff flowid 1:1$mark
|
||||||
# tcp
|
# tcp
|
||||||
set +x
|
|
||||||
}
|
}
|
||||||
|
|
||||||
strip_file tcdevices
|
strip_file tcdevices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user