From 0f7d4e49d8a9fba79fce0754fa6aed423ac57efa Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 9 Oct 2007 13:22:41 +0000 Subject: [PATCH] Updating ip_is_reserved(): 186/8 and 187/8 went to LACNIC --- CHANGELOG | 3 +++ nmap.cc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8b7e5934b..237decf0f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -85,6 +85,9 @@ o Disabled auto-generation of libpcre/pcre_chartables.c because that was useless for our purposes and could also cause some version control related problems. [David] +o Updated IANA assignment IP list for random IP (-iR) + generation. [Kris] + 4.22SOC6 o Included David's major massping migration project. The same diff --git a/nmap.cc b/nmap.cc index 947a6af8a..f54b7b9fa 100644 --- a/nmap.cc +++ b/nmap.cc @@ -387,8 +387,8 @@ static int ip_is_reserved(struct in_addr *ip) if (i1 == 172 && i2 >= 16 && i2 <= 31) return 1; - /* 173-187/8 is IANA reserved */ - if (i1 >= 173 && i1 <= 187) + /* 173-185/8 is IANA reserved */ + if (i1 >= 173 && i1 <= 185) return 1; /* 192.168.0.0/16 is reserved for private nets by RFC1819 */