mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qos: Handle dscp_filter value in qos classify
This commit is contained in:
parent
ff2f9a084e
commit
505c95f23b
1 changed files with 3 additions and 1 deletions
4
qosmngr/files/common/lib/qos/ip_rule.sh
Normal file → Executable file
4
qosmngr/files/common/lib/qos/ip_rule.sh
Normal file → Executable file
|
|
@ -40,7 +40,9 @@ ip_rule_match_src_port_range() {
|
|||
}
|
||||
|
||||
ip_rule_match_tos() {
|
||||
IP_RULE="$IP_RULE tos $1"
|
||||
dscp_filter=$1
|
||||
tos_val=$((dscp_filter<<2))
|
||||
IP_RULE="$IP_RULE tos 0x$tos_val"
|
||||
}
|
||||
|
||||
ip_rule_match_fwmark() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue