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

View source: R/RcppExports.R

range_boundaries_to_cidrR Documentation

Convert a start+end IP address range pair to representative CIDR blocks

Description

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

Usage

range_boundaries_to_cidr(ip_start, ip_end)

Arguments

ip_start, ip_end

range start/end (numeric)

Value

character vector

Examples

range_boundaries_to_cidr(
 ip_to_numeric("192.100.176.0"),
 ip_to_numeric("192.100.179.255")
)
## [1] "192.100.176.0/22"

hrbrmstr/iptools documentation built on Jan. 10, 2023, 2:54 a.m.