iptools
iptools copied to clipboard
Feature request - Modify range_generate to create an IP Subnet Lookup Table
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
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.