-----Original Message-----
From: Fyodor [mailto:fyodor_at_insecure.org]
Sent: Fri 8/13/2004 10:38 AM
To: nmap-dev_at_insecure.org
Cc:
Subject: Dana's SP2 patch
Here is Dana's patch for the Windows SP2 problem. Let me know if you
have any suggestions for improvement. For one thing, I suppose the
test should be for NT 5.1sp2 OR LATER instead of checking only for
SP2. Or, maybe MS will come to their senses and remove these silly
limitations for the next version.
Here is the updated logic. This should go in /mswin32/winip/pcapsend.c
and /mswin32/winip/winip.c, instead of:
+ if( ver.dwMajorVersion >= 5 && ver.dwMinorVersion == 1 && ver.wServicePackMajor == 2 )
+ {
Where we really want is something like:
if ( ( ver.dwMajorVersion > 5 ) ||
( ver.dwMajorVersion == 5 && ver.dwMinorVersion > 1 ) ||
( ver.dwMajorVersion == 5 && ver.dwMinorVersion == 1 && ver.wServicePackMajor >= 2 ) )
{
Received on Aug 14 2004