I'm trying to create a simple PING program in C to transmit ICMP packets with specific TOS bits set.
I followed KB248611 (http://support.microsoft.com/kb/248611
) and set the registry correctly. Microsoft's "ping" program is able to set the TOS bit correctly now.
My program uses Winsock and setsockopt to set the TOS field, but the resulting packets still don't have the TOS field set (I use a sniffer to verify). Does anyone have any experience doing this with Winsock and setsockopt?