mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
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
This commit is contained in:
parent
34db08b94b
commit
e9db35af38
1 changed files with 0 additions and 4 deletions
4
nmap.cc
4
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue