common_function::scalars::ip::range

Function is_ipv4_in_range

Source
fn is_ipv4_in_range(
    ip: &Ipv4Addr,
    cidr_base: &Ipv4Addr,
    prefix_len: u8,
) -> Option<bool>