Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
erapade opened this issue Sep 12, 2016 · 1 comment
Labels

Comments

@erapade
Copy link

erapade commented Sep 12, 2016

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

@hrbrmstr
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants