You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saw a commit about disabling IP_RECVTOS support on macOS (ref: 1736cfa), and I thought I’d make a note of some findings from taking a brief look into it.
Should be checking cmsg->cmsg_type != IP_RECVTOS when defined(__APPLE__) (IP_RECVTOS does differ in value from IP_TOS in the macOS SDK headers).
If a UDP message (UDP/IPv4) is received on an IPv4 socket, the ancillary data will contain a cmsg of level IPPROTO_IP and type IP_RECVTOS. The cmsg data contains an unsigned char.
IPv6 support
See the reference document above, which details how to implement this across Linux + macOS + Windows.
The text was updated successfully, but these errors were encountered:
Saw a commit about disabling
IP_RECVTOS
support on macOS (ref: 1736cfa), and I thought I’d make a note of some findings from taking a brief look into it.Useful references
Configuring UDP Sockets for ECN for Common Platforms:
https://www.ietf.org/archive/id/draft-duke-tsvwg-udp-ecn-01.html
macOS support
The documentation I’ve found (including the above) would seem to indicate that this line:
GameNetworkingSockets/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.cpp
Line 2487 in 725e273
Should be checking
cmsg->cmsg_type != IP_RECVTOS
whendefined(__APPLE__)
(IP_RECVTOS
does differ in value fromIP_TOS
in the macOS SDK headers).IPv6 support
See the reference document above, which details how to implement this across Linux + macOS + Windows.
The text was updated successfully, but these errors were encountered: