configure ecn for wsk
@@ -1613,6 +1613,44 @@ CxPlatSocketCreateUdp(
goto Error;
}
+ Option = TRUE;
+ Status =
+ CxPlatDataPathSetControlSocket(
+ Binding,
+ WskSetOption,
+ IPV6_ECN,
+ IPPROTO_IPV6,
+ sizeof(Option),
+ &Option);
+ if (QUIC_FAILED(Status)) {
+ QuicTraceEvent(
+ DatapathErrorStatus,
+ "[data][%p] ERROR, %u, %s.",
+ Binding,
+ Status,
+ "Set IPV6_ECN");
+ goto Error;
+ }
+
+ Option = TRUE;
+ Status =
+ CxPlatDataPathSetControlSocket(
+ Binding,
+ WskSetOption,
+ IP_ECN,
+ IPPROTO_IP,
+ sizeof(Option),
+ &Option);
+ if (QUIC_FAILED(Status)) {
+ QuicTraceEvent(
+ DatapathErrorStatus,
+ "[data][%p] ERROR, %u, %s.",
+ Binding,
+ Status,
+ "Set IP_ECN");
+ goto Error;
+ }
+
Option = TRUE;
Status =
CxPlatDataPathSetControlSocket(
