Function route_verification_ir::address_prefix::match_ips

source ·
pub fn match_ips(
    ip: &IpNet,
    ips: &[IpNet],
    range_operator: RangeOperator
) -> bool
Expand description

ips must be sorted. Starting from the index of the closest element in ips, search right and left for address prefix that, combined with range_operator, contains ip. Stop searching either end when the index do not point to ip’s siblings.