QOSSetFlow can set Outgoing DSCP Value And the document hasn't shown these APIs will be depreciated.
DSCP markings set using QoS2 api are not present in captured packets
Hi, I am trying to run (https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/netds/Qos/Qos2) this sample app on my Windows 10 Pc to understand the concept of DSCP markings. DSCP value is being set here using the following function:
result = QOSAddSocketToFlow(qosHandle,
socket,
NULL,
QOSTrafficTypeExcellentEffort,
0,
&flowID);
I didn't get any errors or warnings while making this API call, but when I am trying to analyze the packets captured using Wireshark, I am getting DSCP markings to be set as 0. (Please refer to the attached image). So my questions are as follows:
- Are these APIs supported for windows 10?
- Is this the right approach to call this API?
- Do we have any workaround for this issue?
2 answers
Sort by: Most helpful
-
Xiaopo Yang - MSFT 11,256 Reputation points Microsoft Vendor
2021-10-25T07:05:48.65+00:00 -
Tubai 1 Reputation point
2021-10-25T09:43:43.9+00:00 Hi Xiaopo, thanks for your reply.
I am already calling QOSSetFlow function :
result = QOSSetFlow(qosHandle,
flowID,
QOSSetOutgoingRate,
sizeof(flowRate),
&flowRate,
0,
NULL);
Yet, the DSCP field is not being changed from its Default(0) for outgoing packets.