Reputation: 107
I am using setsocketopt
function for Ipv4 address and using IP_TOS
value for PPROTO_IP
option.
what is the equivalent of IP_TOS in IPv6 addressing?
In IPv6 we use PROTO_IPv6
, but I could not find any equivalent option like IP_TOS
in IPv6 addressing.
Upvotes: 4
Views: 3838
Reputation: 12866
As per MSDN Article ID: 248611 ToS is ignored and the GQOS API is limited to IPv4-only. For IPv6 and IPv4 you must use qWAVE QOS which requires Vista or later platforms.
i.e. QoS is completely abstracted away from BSD sockets in Windows land.
Upvotes: 0
Reputation: 598319
"Back in XP we had disabled the Winsock IP_TOS option. If you used this socket option, the call would succeed but be ignored silently. You could re-enable it through a registry value. In Vista, this registry mechanism has been removed: Winsock IP_TOS option is no longer available."
Upvotes: 0
Reputation: 121881
I don't know how widely supported it is, but I believe the constant for "setsockopt() traffic class" would be IPV6_TCLASS
:
See also:
Upvotes: 1