powered by
Determine if a vector if IPv4 addresses are in a vector of CIDRs
ips_in_cidrs(ips, cidrs)
character vector or numeric vector of IPv4 addresses
character vector or numeric vector of IPv4 CIDRs
data_frame with ips column and a logical in_cdir column
data_frame
ips
in_cdir
# NOT RUN { ips_in_cidrs( c("4.3.2.1", "1.2.3.4", "1.20.113.10", "5.190.145.5"), c("5.190.144.0/21", "1.20.113.0/24") ) # }
Run the code above in your browser using DataLab