1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 12:49:02 +00:00

merge soc07 r5283:5298 - updating ip_is_reserved(); add sys/types.h include so it compiles on OpenBSD

This commit is contained in:
fyodor
2007-08-11 06:05:07 +00:00
parent e50380f9d7
commit 0dc44d08b0
3 changed files with 7 additions and 2 deletions

View File

@@ -7,6 +7,11 @@ o Fixed an output bug on systems like Windows which return -1 when
vsnprintf is passed a too-small buffer rather than returning the vsnprintf is passed a too-small buffer rather than returning the
size needed. Thanks to jah (jah(a)zadkiel.plus.com) for the report. size needed. Thanks to jah (jah(a)zadkiel.plus.com) for the report.
o Added sys/types.h include to reason.h to help OpenBSD compilation.
Thanks to Olivier Meyer for the patch.
o Updated IANA assignment IP list for random IP (-iR) generation. [Kris]
4.22SOC2 4.22SOC2
o NSE compilation fixes by Stoiko and Kris o NSE compilation fixes by Stoiko and Kris

View File

@@ -369,8 +369,6 @@ static int ip_is_reserved(struct in_addr *ip)
case 49: /* 049/8 is IANA reserved */ case 49: /* 049/8 is IANA reserved */
case 50: /* 050/8 is IANA reserved */ case 50: /* 050/8 is IANA reserved */
case 55: /* misc. U.S.A. Armed forces */ case 55: /* misc. U.S.A. Armed forces */
case 94: /* 094/8 is IANA reserved */
case 95: /* 095/8 is IANA reserved */
case 127: /* 127/8 is reserved for loopback */ case 127: /* 127/8 is reserved for loopback */
case 197: /* 197/8 is IANA reserved */ case 197: /* 197/8 is IANA reserved */
case 223: /* 223/8 is IANA reserved */ case 223: /* 223/8 is IANA reserved */

View File

@@ -108,6 +108,8 @@
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif
#include <sys/types.h>
class Target; class Target;
class PortList; class PortList;