diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-12-15 10:50:33 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-12-15 10:50:33 +1100 |
commit | adb0ea006d7668190f0c42aafe3a2864d352e34a (patch) | |
tree | 93261d2426e9f87277e482bd0e15201a5707ddd9 | |
parent | 3dafd3fe220bd9046f11fcf5191a79ec8800819f (diff) |
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@.
-rw-r--r-- | defines.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |