Hot to set traffic class of IPv6 socket?

鲲鹏 贺 1 Reputation point
2022-12-21T11:03:12.87+00:00

I'm trying to modify the traffic class of the IPv6 socket just like the tos of IPv4. But it seems there is no IPv6_TCLASS like IP_TOS to use in the docs (ipproto-ipv6-socket-options)

The doc of IP_TOS mentions that it is recommended to use the QoS API. But I'm looking forward to using nearly the same code as on Linux, which uses IP_TOS/IPV6_TCLASS directly.

Windows development | Windows API - Win32
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2022-12-22T03:09:15.71+00:00

    Hello,

    Welcome to Microsoft Q&A!

    According to the Doc: IPPROTO_IPV6 socket options

    The IPV6_TCLASS socket option isn't available in Windows with IPPROTO_IPV6.

    You could refer to the Github:https://github.com/microsoft/WSL/issues/1869

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.