diff options
| author | Alexander Amanuel <iavael@yandex-team.ru> | 2014-01-29 20:17:14 +0400 |
|---|---|---|
| committer | Alexander Amanuel <iavael@yandex-team.ru> | 2014-01-29 20:17:22 +0400 |
| commit | 96a77e42d1323717c9159261f03736cdb4dd4ee6 (patch) | |
| tree | 94489cc013efd63442d2b8adbc810725baefd604 /src/SocketCore.h | |
| parent | 46a251e346f085f4a6e022ead94d45391ab53726 (diff) | |
Minor DSCP-related improvements
- Improved usage annotation
- Shifted DSCP value to set not whole DS field, but only it's DSCP part
Diffstat (limited to 'src/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index 9d110b53..4442dc15 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -125,7 +125,8 @@ public: void applyIpDscp(); static void setIpDscp(int ipDscp) { - ipDscp_ = ipDscp; + // Here we prepare DSCP value for IPTOS option, which sets whole DS field + ipDscp_ = ipDscp << 2; } void create(int family, int protocol = 0); |
