iptools icon indicating copy to clipboard operation
iptools copied to clipboard

Feature request - Modify range_generate to create an IP Subnet Lookup Table

Open erapade opened this issue 9 years ago • 1 comments

I guess it's possible to do this easily in R, but what I would like to have is a modified range_generate that as a second argument can take GenerateIpLookupTable=true

The output would look like below: range_generate("192.168.1.0/30", GenerateIpLookupTable=true)

192.168.1.0/30 192.168.1.0 192.168.1.0/30 192.168.1.1 192.168.1.0/30 192.168.1.2 192.168.1.0/30 192.168.1.3

erapade avatar Sep 12 '16 15:09 erapade

Take a look at the dev/github version. There are some new functions which can test whether an IP is in a set of CIDR blocks without having to generate the ranges ahead of time. It's just not in CRAN yet.

hrbrmstr avatar Sep 12 '16 16:09 hrbrmstr