mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
Minor DSCP-related improvements
- Improved usage annotation - Shifted DSCP value to set not whole DS field, but only it's DSCP part
This commit is contained in:
parent
46a251e346
commit
96a77e42d1
@ -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);
|
||||
|
@ -959,4 +959,5 @@
|
||||
" seconds. If 0 is given, file will be saved only\n" \
|
||||
" when aria2 exits.")
|
||||
#define TEXT_DSCP \
|
||||
_(" --dscp=DSCP Set DSCP code")
|
||||
_(" --dscp=DSCP Set DSCP value in outgoing IP packets of\n" \
|
||||
" BitTorrent traffic for QoS.")
|
||||
|
Loading…
Reference in New Issue
Block a user