From e9db35af3826bf27fa4cf0c16e298938dfc6b33c Mon Sep 17 00:00:00 2001 From: fyodor Date: Sun, 30 Nov 2008 20:45:48 +0000 Subject: [PATCH] Remove *.255.255.255 block from ip_is_reserved(), allowing these addresses to be selected in Random scans. Also removed the 204.152.64.0/23 block, as the reason for having it may no longer apply. Plus these are very small blocks to worry about in the grand scheme of things. Jack Grahl suggested the *.255.255.255 removal --- nmap.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nmap.cc b/nmap.cc index b1dbe493a..e0288c2c4 100644 --- a/nmap.cc +++ b/nmap.cc @@ -423,10 +423,6 @@ static int ip_is_reserved(struct in_addr *ip) if (i1 >= 224) return 1; - /* 255.255.255.255, note we already tested for i1 in this range */ - if (i2 == 255 && i3 == 255 && i4 == 255) - return 1; - return 0; }