1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +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:
dmiller
2016-02-11 05:52:35 +00:00
parent 8d151fa690
commit 27c2a64a17
2 changed files with 6 additions and 3 deletions

View File

@@ -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: