From 5fbc63cc22c41504763676bf7bb98a9ec4374e75 Mon Sep 17 00:00:00 2001 From: fyodor Date: Fri, 9 Feb 2007 00:17:38 +0000 Subject: [PATCH] revert last patch -- Kris tells me the new assignment numbers may be wrong --- CHANGELOG | 2 +- nmap.cc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 1f524c591..8c7800709 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/nmap.cc b/nmap.cc index c931cacb2..6d3ff18b2 100644 --- a/nmap.cc +++ b/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)