Pārlūkot izejas kodu

Improved dscp parameter description

Alexander Amanuel 11 gadi atpakaļ
vecāks
revīzija
a7182b9ee4
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      src/usage_text.h

+ 8 - 1
src/usage_text.h

@@ -960,4 +960,11 @@
     "                              when aria2 exits.")
 #define TEXT_DSCP                                                       \
   _(" --dscp=DSCP                  Set DSCP value in outgoing IP packets of\n" \
-    "                              BitTorrent traffic for QoS.")
+    "                              BitTorrent traffic for QoS. This parameter sets\n" \
+    "                              only DSCP bits in TOS field of IP packets,\n" \
+    "                              not the whole field. If you take values\n" \
+    "                              from /usr/include/netinet/ip.h divide them by 4\n" \
+    "                              (otherwise values would be incorrect, e.g. your CS1\n" \
+    "                              class would turn into CS4). If you are take commonly\n" \
+    "                              used values from RFC, network vendors' documentation,\n" \
+    "                              Wikipedia or any other source, use them as they are.")