]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Correct value for IPTOS_DSCP_LE.
authorDarren Tucker <dtucker@dtucker.net>
Tue, 14 Dec 2021 23:50:33 +0000 (10:50 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 14 Dec 2021 23:50:33 +0000 (10:50 +1100)
It needs to allow for the preceeding two ECN bits.  From daisuke.higashi
at gmail.com via OpenSSH bz#3373, ok claudio@, job@, djm@.

defines.h

index 36c06eddd67b13a31eb32224941e8caae390aaa6..279e509aae22e4e2824a15c9be4dac7f89a5be5c 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -66,7 +66,9 @@ enum
 #endif /* IPTOS_LOWDELAY */
 
 /*
- * Definitions for DiffServ Codepoints as per RFC2474
+ * Definitions for DiffServ Codepoints as per RFCs 2474, 3246, 4594 & 8622.
+ * These are the 6 most significant bits as they appear on the wire, so the
+ * two least significant bits must be zero.
  */
 #ifndef IPTOS_DSCP_AF11
 # define       IPTOS_DSCP_AF11         0x28
@@ -97,7 +99,7 @@ enum
 # define       IPTOS_DSCP_EF           0xb8
 #endif /* IPTOS_DSCP_EF */
 #ifndef IPTOS_DSCP_LE
-# define       IPTOS_DSCP_LE           0x01
+# define       IPTOS_DSCP_LE           0x04
 #endif /* IPTOS_DSCP_LE */
 #ifndef IPTOS_PREC_CRITIC_ECP
 # define IPTOS_PREC_CRITIC_ECP         0xa0