Function ipv4_string_to_bytes

Source
pub fn ipv4_string_to_bytes(ipv4: &str) -> Result<Vec<u8>, RadiusError>
Expand description

Converts IPv4 Address string into vector of bytes

Should be used for any Attribute of type ipaddr, ipv4addr or ipv4prefix to ensure value is encoded correctly