Determine if a vector if IPv4 addresses are in a vector of CIDRs

ips_in_cidrs(ips, cidrs)

Arguments

ips
character vector or numeric vector of IPv4 addresses
cidrs
character vector or numeric vector of IPv4 CIDRs

Value

data_frame with ips column and a logical in_cdir column

Note

auto-appends /32 if a bare IPv4 is detected