pub fn ipv4_from_str(ipv4: &str) -> Result<u32, &'static str>