From 318688acd5f3773b2e55af14ca203fd3a1e336ee Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 29 Apr 2009 19:20:42 +0000 Subject: [PATCH] updating ip_is_reserved(): 180/8 and 183/8 allocated --- CHANGELOG | 3 +++ nmap.cc | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index e19b72588..129e96782 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/nmap.cc b/nmap.cc index eed45a263..a3b92128e 100644 --- a/nmap.cc +++ b/nmap.cc @@ -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 */