1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 03:49:01 +00:00

relatively large ip_is_reserved() update: 5/8, 23/8, 37/8 and 100/8 allocated

This commit is contained in:
kris
2010-12-04 00:16:38 +00:00
parent c822f62d84
commit 39ac0e4eda

View File

@@ -411,15 +411,11 @@ int ip_is_reserved(struct in_addr *ip)
switch (i1)
{
case 0: /* 000/8 is IANA reserved */
case 5: /* 005/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 23: /* 023/8 is IANA reserved */
case 37: /* 037/8 is IANA reserved */
case 39: /* 039/8 is IANA reserved */
case 55: /* misc. U.S.A. Armed forces */
case 100: /* 100/8 is IANA reserved */
case 106: /* 106/8 is IANA reserved */
case 127: /* 127/8 is reserved for loopback */
case 179: /* 179/8 is IANA reserved */