- Improved usage annotation - Shifted DSCP value to set not whole DS field, but only it's DSCP part
@@ -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.")