From 27c2a64a17f9be1eb02b9f6be286124f6800bb15 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 11 Feb 2016 05:52:35 +0000 Subject: [PATCH] Remove 6/8, 7/8, and 55/8 from ip_is_reserved. http://seclists.org/nmap-dev/2016/q1/11 --- CHANGELOG | 6 ++++++ libnetutil/netutil.cc | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index db9da217f..ea271a583 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,11 @@ # Nmap Changelog ($Id$); -*-text-*- +o Removed 6/8, 7/8, and 55/8 networks from the list of "reserved" IP addresses + that Nmap uses to filter -iR randomly generated targets. These address ranges + belong to the U.S. Department of Defense, so users wanting to avoid those + ranges should use their own exclusion lists with --exclude or --exclude-file. + [Daniel Miller] + o [NSE] whois-ip: Don't request a remote IANA assignments data file when the local filesystem will not permit the file to cached in a local file. [jah] diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index e6ba1094e..7dfee6da0 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -486,10 +486,7 @@ int ip_is_reserved(struct in_addr *ip) switch (i1) { case 0: /* 000/8 is IANA reserved */ - case 6: /* USA Army ISC */ - case 7: /* used for BGP protocol */ case 10: /* the infamous 10.0.0.0/8 */ - case 55: /* misc. U.S.A. Armed forces */ case 127: /* 127/8 is reserved for loopback */ return 1; default: