range_boundaries.Rd
Retrieve range boundaries for a character vector of IPv4/IPv6 CIDRs
range_boundaries(cidr)
cidr | a character vector of IPv4/IPv6 CIDRs |
---|
data frame with original input, canonical CIDR, start/end (chr) of range and number of hosts.
the n_hosts
column is a numeric vector since R cannot handle 128-bit integers easily and
v4 & v6 are co-mingled.
range_boundaries( c("2001:4801::/32", "2001:0db8::/127", "10.1.10.0/24", "2001:0db8::/119", "wat") )