Nmap Development mailing list archives
Re: Missing getaddrinfo on Windows 2000--almost solved
From: "Kris Katterjohn" <katterjohn () gmail com>
Date: Thu, 28 Aug 2008 01:46:22 +0530
Hey, On Thu, Aug 28, 2008 at 1:20 AM, David Fifield <david () bamsoftware com> wrote:
On Thu, Aug 28, 2008 at 01:07:25AM +0530, Kris Katterjohn wrote:I was looking at the "Using the Windows Headers" MSDN page you posted which lists the NTDDI macros and values (including NTDDI_WIN2KSP*). The thing is I was in the mindset of _WIN32_WINNT so I must've just glazed over the NTDDI prefix when looking at this and thought I was looking at something different. There are only 5 _WIN32_WINNT values, corresponding to major versions (2K, XP, Longhorn, etc) and without SPs.Okay, I see. I think you can set both. Set _WIN32_WINNT to _WIN32_WINNT_WIN2K and then set NTDDI_VERSION to NTDDI_WIN2KSP4, both in nbase_winunix.h. If you don't set NTDDI_VERSION it gets set based on the value of _WIN32_WINNT in sdkddkver.h. Just look at sdkddkver.h, you'll see the logic. I don't know where that file is kept but you can open it by right-clicking on _WIN32_WINNT_WIN2K and selecting "Go to definition."
Spot on, thanks! I've built Nmap and Ncat with the change and they both compile and run fine, so I've committed it.
David
Thanks again, Kris Katterjohn _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- RE: Missing getaddrinfo on Windows 2000--almost solved, (continued)
- RE: Missing getaddrinfo on Windows 2000--almost solved Rob Nicholls (Aug 23)
- Re: Missing getaddrinfo on Windows 2000--almost solved Vlatko Kosturjak (Aug 24)
- Re: Missing getaddrinfo on Windows 2000--almost solved Vlatko Kosturjak (Aug 24)
- Re: Missing getaddrinfo on Windows 2000--almost solved Fyodor (Sep 02)
- Re: Missing getaddrinfo on Windows 2000--almost solved David Fifield (Aug 24)
- Re: Missing getaddrinfo on Windows 2000--almost solved Kris Katterjohn (Aug 26)
- RE: Missing getaddrinfo on Windows 2000--almost solved Rob Nicholls (Aug 27)
- Re: Missing getaddrinfo on Windows 2000--almost solved David Fifield (Aug 27)
- Re: Missing getaddrinfo on Windows 2000--almost solved Kris Katterjohn (Aug 27)
- Re: Missing getaddrinfo on Windows 2000--almost solved David Fifield (Aug 27)
- Re: Missing getaddrinfo on Windows 2000--almost solved Kris Katterjohn (Aug 27)