mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Remove 6/8, 7/8, and 55/8 from ip_is_reserved. http://seclists.org/nmap-dev/2016/q1/11
This commit is contained in:
parent
8d151fa690
commit
27c2a64a17
2 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue