From adb0ea006d7668190f0c42aafe3a2864d352e34a Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 15 Dec 2021 10:50:33 +1100 Subject: [PATCH] Correct value for IPTOS_DSCP_LE. 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/defines.h b/defines.h index 36c06eddd..279e509aa 100644 --- 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