Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Nmap 4.60 Compilation Errors with Visual Studios 2008
From: Kris Katterjohn <katterjohn () gmail com>
Date: Tue, 01 Apr 2008 23:38:12 -0500

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

Mike pattrick wrote:
Finally, go into tcpip.cc and change the following:

    inet_ntop(AF_INET, frame+38, who_has, sizeof(who_has));
    inet_ntop(AF_INET, frame+28, tell, sizeof(tell));
    Snprintf(arpdesc, sizeof(arpdesc), "who-has %s tell %s", who_has, tell);
  } else { /* ARP REPLY */
    inet_ntop(AF_INET, frame+28, who_has, sizeof(who_has));

to

    inet_ntop(AF_INET, (void*)(frame+38), who_has, sizeof(who_has));
    inet_ntop(AF_INET, (void*)(frame+28), tell, sizeof(tell));
    Snprintf(arpdesc, sizeof(arpdesc), "who-has %s tell %s", who_has, tell);
  } else { /* ARP REPLY */
    inet_ntop(AF_INET, (void*)(frame+28), who_has, sizeof(who_has));



Eeww, they make you cast to void* ?  Please tell me that's just for a
warning and not an error..

I already don't like having to cast void* returning functions like
malloc() in C++ so I certainly don't want MS adding more crap for people
to have to worry about :)

Sincerely,
Michael Patrick
University of Ontario - Faculty of BIT - Information Security


Thanks,
Kris Katterjohn

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

iQIVAwUBR/MNsv9K37xXYl36AQJ7IA/+LtS5k+eyL2PVnjxWbbgobbBatGI5eK/E
uSurAQOb88b7F6OI+DXAII0UtMD+RICX0fV9qnPVq6FEYecGxQlLSsPxrbr+INdx
b5tBynS4BjyeRbeSBawYGC7Ko79yWMfKohg+s46sQ42Oa3lbVU6n/spL0fItxukM
8ZQFAeB9T3x+Gmi0xLpffiHXDz3U9DdaPkUbXsV5+fvUigaUiNaN/zSsrx4p/38R
e0plGl2auwL9FrHJZpqKlTTg8OCnIMR2BBWGQD3Rcw3dIuKC1ASuVe8PMd8lVJRS
72E5m8nyrBXJa2cwIYrnbX3FsIoHWchWz3OF5d1hKPsgJYXim0ZOI1x5//rNRpi6
ynCEfsgq/dEef4WfgUhk/Qoyl1P5xk0tAmxT8nzvIdSk5I9aNHWQwJEZt7/7jicN
Wb70JrnJlPwFPW8kGrmBp7IywYMACaolUymXkL06Nsp7q57hQEAyAJxrl9MQ+fZD
6VsN+rK2xlO3Az2SZk/D2avTmbYlKCmFG45kTbLidcCqEPcqMeAhJbS5mKxTxg8r
xY5FqvHuqg1sUx0BmmC3WzTlVTXPAG1qaFuLV/zFbDItOJwLgAytuLgcodYLJc9B
M9daJ5qrXXklH2Cr+OWIJigUmLlIXiEfjllFam699WrKUXbOidTt9mvDtenVSTU7
MDXy9JfzGhM=
=3TdF
-----END PGP SIGNATURE-----

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


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault