* @returns Whether or not this network address is publicly routable on the * global internet. * * @note A routable address is always valid. As in, the set of routable addresses * is a subset of the set of valid addresses. * * @see CNetAddr::IsValid() */
| 488 | * @see CNetAddr::IsValid() |
| 489 | */ |
| 490 | bool CNetAddr::IsRoutable() const |
| 491 | { |
| 492 | return IsValid() && !(IsRFC1918() || IsRFC2544() || IsRFC3927() || IsRFC4862() || IsRFC6598() || IsRFC5737() || IsRFC4193() || IsRFC4843() || IsRFC7343() || IsLocal() || IsInternal()); |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * @returns Whether or not this is a dummy address that represents a name. |