Browse Source

Set a recommended and high priority for DTLS handshake packet

industriousonesoft 3 years ago
parent
commit
18d74a7183
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/impl/dtlstransport.cpp

+ 2 - 2
src/impl/dtlstransport.cpp

@@ -494,9 +494,9 @@ bool DtlsTransport::outgoing(message_ptr message) {
 	if (message->dscp == 0) {
 		// DTLS handshake packet
 		if (state() != DtlsTransport::State::Connected) {
-			// Set recommended medium-priority DSCP value
+			// Set recommended high-priority DSCP value
 			// See https://datatracker.ietf.org/doc/html/rfc8837#section-5
-			message->dscp = 18; // AF21(18), the recommendation for high-priority data
+			message->dscp = 18; // AF21(18), Assured Forwarding class 2, low drop probability
 		// User packet
 		}else {
 			message->dscp = mCurrentDscp;