From ca5848efdb4e0cff6ea28205190f4cbf4bfbc697 Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 27 May 2008 18:31:26 +0000 Subject: [PATCH] Updating ip_is_reserved(): 112/8 and 113/8 were allocated to APNIC --- CHANGELOG | 3 +++ nmap.cc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 424cba220..cad49f3ef 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -85,6 +85,9 @@ o Replaced kibuvDetection.nse with version detection match lines which o Removed mswindowsShell.nse as there is a version detection NULL probe match which accomplishes the same thing. [Brandon, Fyodor, Kris] +o Updated IANA assignment IP list for random IP (-iR) + generation. [Kris] + Nmap 4.62 [5/3/08] o Added a new --min-rate option that allows specifying a minimum rate diff --git a/nmap.cc b/nmap.cc index a46a2d813..052666a87 100644 --- a/nmap.cc +++ b/nmap.cc @@ -380,8 +380,8 @@ static int ip_is_reserved(struct in_addr *ip) break; } - /* 100-113/8 is IANA reserved */ - if (i1 >= 100 && i1 <= 113) + /* 100-111/8 is IANA reserved */ + if (i1 >= 100 && i1 <= 111) return 1; /* 172.16.0.0/12 is reserved for private nets by RFC1819 */