Use CS6 instead of CS7 for audio traffic
CS7 is reserved for network control traffic.
This commit is contained in:
parent
bb3b7984f3
commit
2008bc0eaa
2 changed files with 6 additions and 4 deletions
|
|
@ -637,14 +637,15 @@ namespace platf {
|
||||||
option = IP_TOS;
|
option = IP_TOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The specific DSCP values here are chosen to be consistent with Windows
|
// The specific DSCP values here are chosen to be consistent with Windows,
|
||||||
|
// except that we use CS6 instead of CS7 for audio traffic.
|
||||||
int dscp = 0;
|
int dscp = 0;
|
||||||
switch (data_type) {
|
switch (data_type) {
|
||||||
case qos_data_type_e::video:
|
case qos_data_type_e::video:
|
||||||
dscp = 40;
|
dscp = 40;
|
||||||
break;
|
break;
|
||||||
case qos_data_type_e::audio:
|
case qos_data_type_e::audio:
|
||||||
dscp = 56;
|
dscp = 48;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BOOST_LOG(error) << "Unknown traffic type: "sv << (int) data_type;
|
BOOST_LOG(error) << "Unknown traffic type: "sv << (int) data_type;
|
||||||
|
|
|
||||||
|
|
@ -484,14 +484,15 @@ namespace platf {
|
||||||
option = IP_TOS;
|
option = IP_TOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The specific DSCP values here are chosen to be consistent with Windows
|
// The specific DSCP values here are chosen to be consistent with Windows,
|
||||||
|
// except that we use CS6 instead of CS7 for audio traffic.
|
||||||
int dscp = 0;
|
int dscp = 0;
|
||||||
switch (data_type) {
|
switch (data_type) {
|
||||||
case qos_data_type_e::video:
|
case qos_data_type_e::video:
|
||||||
dscp = 40;
|
dscp = 40;
|
||||||
break;
|
break;
|
||||||
case qos_data_type_e::audio:
|
case qos_data_type_e::audio:
|
||||||
dscp = 56;
|
dscp = 48;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BOOST_LOG(error) << "Unknown traffic type: "sv << (int) data_type;
|
BOOST_LOG(error) << "Unknown traffic type: "sv << (int) data_type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue