/* Ascii internet address interpretation routine. The value returned is in network order. */
in_addr_t netdev_ipaddr_addr(const char *cp)
/* Ascii internet address interpretation routine. The value returned is in network order. */
in_addr_t netdev_ipaddr_addr(const char *cp)
{
    ip4_addr_t val;
    if (netdev_ip4addr_aton(cp, &val)) {
        return ip4_addr_get_u32(&val);
    }
    return (IPADDR_NONE);
}