mirror of
https://github.com/nmap/nmap.git
synced 2026-01-23 06:39:01 +00:00
revert last patch -- Kris tells me the new assignment numbers may be wrong
This commit is contained in:
@@ -16,7 +16,7 @@ o Fixed the way Nmap detects whether one of its data files (such as
|
||||
o Added a bunch of nmap-services port listings from Stephanie Wen.
|
||||
|
||||
o Update IANA assignment IP list for random IP (-iR) generation.
|
||||
Thanks to Kris Katterjohn and Mike Phipps for the patches.
|
||||
Thanks to Kris Katterjohn for the patch.
|
||||
|
||||
o Fix nmap.xsl (the transform for rendering Nmap XML results as HTML)
|
||||
to fix some bugs related to OS detection output. Thanks to Tom
|
||||
|
||||
12
nmap.cc
12
nmap.cc
@@ -359,13 +359,13 @@ static int ip_is_reserved(struct in_addr *ip)
|
||||
break;
|
||||
}
|
||||
|
||||
/* 077-079/8 is IANA reserved */
|
||||
if (i1 >= 77 && i1 <= 79)
|
||||
return 1;
|
||||
/* 092-95/8 is IANA reserved */
|
||||
if (i1 >= 92 && i1 <= 95)
|
||||
return 1;
|
||||
|
||||
/* 092-123/8 is IANA reserved */
|
||||
if (i1 >= 92 && i1 <= 123)
|
||||
return 1;
|
||||
/* 100-120/8 is IANA reserved */
|
||||
if (i1 >= 100 && i1 <= 120)
|
||||
return 1;
|
||||
|
||||
/* 172.16.0.0/12 is reserved for private nets by RFC1819 */
|
||||
if (i1 == 172 && i2 >= 16 && i2 <= 31)
|
||||
|
||||
Reference in New Issue
Block a user