Nmap Development mailing list archives

Re: Missing getaddrinfo on Windows 2000--almost solved


From: Kris Katterjohn <katterjohn () gmail com>
Date: Wed, 20 Aug 2008 15:42:14 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Fifield wrote:
On Wed, Aug 20, 2008 at 10:04:23AM +0100, Rob Nicholls wrote:
Anyway, I've attached a patch that works for me on XP and still
compiles fine on Linux.  Can you try it out with your header reorder
and see if it works on 2000, and any other Windows machines you can
test on?
I tried your patch on a Windows 2000 Server host and unfortunately got the
error message:

The procedure entry point inet_ntop could not be located in the dynamic
link library WS2_32.dll

This was after including the header file wspiapi.h after ws2tcpip.h in
nbase/nbase_winunix.h (and I even added it to
libdnet-stripped/src/ip-win32.c just in case).

On a slightly more positive note, after making these modifications it
still worked okay on Vista.

I don't have a WIndows box handy to test on, so Rob could you try this
patch? Visual Studio 2008 declares inet_ntop and inet_pton, but those
functions are only actually available on Windows Vista and later.

Yes, this does seem to be the case.  I cd'd to the wrong SVN copy in Cygwin
while testing (gotta remember the difference between "nmap" and "nmap-test",
d'oh), so everything had seemed to work fine.  I ended up getting the same
error message Rob got when running the correct one in cmd.exe.

Sorry about all that.

David Fifield


Thanks,
Kris Katterjohn

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBSKyBlv9K37xXYl36AQKPZg//UcyH+wU3RNo6CNBpSvMMbXKWuOEQDTRG
fptuaxcZm7FWQ8xOfGAYWtECaie3IMMqYTcbhKo9dr+EcNwoVOn57ATfPf8SIWtB
XfnMFNesQbtuSXycG0+7MprFWev5ocvPFuEp/fBMiJKr1cxyFcItVtKfQUO6ANNx
+RXnArUIk2BrWyvLASsjT0Ch85hJKpl6WkDBXN9VvUkJAoqqx4zEauBNyfXvwlfr
fZwrDNv/urXQx/BgNdDU2nIYpO1iJTl3HiC/BrBthD6ZCj3FuTeHEmdO8T++eadh
drGHCcdT3oqBqtqtdiTCYN/dAZf5aeSwjiUEfnW+sVigRGsvA0+H8Q7GoIjE/kjP
Yh6j3x6QMPnjiOCbU+OzNQP/7Obhs11fh1th2vpUeEQTp+XL66taFCiNwfe397F2
qRVg/tVxQhsqAd5RrHSZDeKwAWvxTA5e6qBSBwzhNFDa9pFolkoyRY2Qfc22YhLN
QGK45JIgYVt/mDWDpiTQVr5iwiva0jjP8xNUHhsOXUtx5DxoXTWtvtz7ocl7qGMy
k0Nm3bCCL1GcQ0bH8vi0+oeHJm/x44Xc+rGeKp/FGo1HlZj4AYLNe6FKz4nB4rUN
Q7t9q8rBDnI0gqOXDyemqott3WjjlrpusKw9Tc2ONOaG+7H6Vjjvz1r6fFdmoS1l
HlJTsnH+3ZU=
=RLuT
-----END PGP SIGNATURE-----

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: