range_boundaries_to_cidr: Convert a start+end IP address range pair to representative...

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

takes in a single start/end pair and returns a charcter vector of all the CIDR blocks necessary to contain the range.

Usage

1
range_boundaries_to_cidr(ip_start, ip_end)

Arguments

ip_start, ip_end

range start/end (numeric)

Value

character vector

Examples

1
2
3
4
5
range_boundaries_to_cidr(
 ip_to_numeric("192.100.176.0"),
 ip_to_numeric("192.100.179.255")
)
## [1] "192.100.176.0/22"

Example output

[1] "192.100.176.0/22"

iptools documentation built on Sept. 10, 2021, 5:06 p.m.