caidongyun / futty

Automatically exported from code.google.com/p/futty
Other
0 stars 1 forks source link

IP ToS only works on Windows XP/2003 #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Figure out why setting the IP ToS works on Windows XP/2003 but not on Windows 
Vista/7.  (At least in my testing)

Windows XP/2003 requires you to add a registry setting to enable it, does 
Vista/7 have something similar you have to change?

Or, is the code wrong?  =/

Original issue reported on code.google.com by FireEgl on 21 Oct 2010 at 11:56

GoogleCodeExporter commented 8 years ago
Direct link to the code in question: 
http://code.google.com/p/futty/source/browse/trunk/windows/winnet.c#861

Original comment by FireEgl on 22 Oct 2010 at 7:51

GoogleCodeExporter commented 8 years ago
Looks like it's deprecated in Vista/7 and setting the socket option takes no 
effect: http://blogs.msdn.com/b/wndp/archive/2006/07/05/657196.aspx

We can set the ToS (DSCP) field on vista/7/server 2008 using the QOS2 API, and 
namely QOSSetFlow: 
http://msdn.microsoft.com/en-us/library/aa374047%28v=VS.85%29.asp

Original comment by plaz...@gmail.com on 26 Oct 2010 at 3:02