.NET Core provides Sockets
class which is an implementation of Berkely Sockets API.
It provides a method IOControl that allows setting low-level IO Control. It also has an enum where we can use IOControlCode.SetQos
. What should be the value of other parameters of this method if we want to set DSCP of the IP header to CS1 (0x08) ?
The documentation says it passes the value to internal WinSockApi's WSAIoctl
method. However its documentation is difficult to comprehend.