utils_ipaddr_valid

Function utils_ipaddr_valid 

Source
pub fn utils_ipaddr_valid(family: i32, ip: &str) -> bool
Expand description

Checks if @ip contains a valid IP address of the given family.

§family

AF_INET or AF_INET6, or AF_UNSPEC to accept either

§ip

an IP address

§Returns

true or false