1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-25 23:59:01 +00:00

updating ip_is_reserved(): 180/8 and 183/8 allocated

This commit is contained in:
kris
2009-04-29 19:20:42 +00:00
parent b4243e23f2
commit 318688acd5
2 changed files with 6 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ o The official Windows binaries are now compiled with MS Visual C++
o [Ncat] Minor code cleanup of Ncat memory allocation and string
duplication calls. [Ithilgore]
o Updated IANA assignment IP list for random IP (-iR)
generation. [Kris]
Nmap 4.85BETA8 [2009-04-21]
o Ncat's HTTP proxy now supports the GET, HEAD, and POST methods in

View File

@@ -365,6 +365,7 @@ static int ip_is_reserved(struct in_addr *ip)
case 50: /* 050/8 is IANA reserved */
case 55: /* misc. U.S.A. Armed forces */
case 127: /* 127/8 is reserved for loopback */
case 179: /* 179/8 is IANA reserved */
case 185: /* 185/8 is IANA reserved */
case 223: /* 223/8 is IANA reserved */
return 1;
@@ -384,8 +385,8 @@ static int ip_is_reserved(struct in_addr *ip)
if (i1 >= 175 && i1 <= 177)
return 1;
/* 179-183/8 is IANA reserved */
if (i1 >= 179 && i1 <= 183)
/* 181-182/8 is IANA reserved */
if (i1 >= 181 && i1 <= 182)
return 1;
/* 192.168.0.0/16 is reserved for private nets by RFC1819 */