x/net/ipv4: SetTOS should return errNotImplemented on Windows #67474
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
Go version
go version go1.22.3 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I cross build on MacOS for Windows so the version and env above is all output for MacOS but this issue is created for the Windows implementation of SetTOS.
See the following code:
What did you see happen?
The code runs successful on Windows but does not set the TOS value on the outgoing UDP packet.
What did you expect to see?
According to the document that is referenced by the source code the
IP_TOS
is described asDo not use
as the TOS cannot be set programmatically.I would think it would be better to remove this line from the code and make calling
SetTOS
on Windows fail with an error because currently the call seems to succeed without any effect to the actual packet.The text was updated successfully, but these errors were encountered: