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

Custom nextIPNumber / previousIPNumber [IPv4 / IPv6] #44

Open
witoldmetel opened this issue Apr 23, 2020 · 1 comment
Open

Custom nextIPNumber / previousIPNumber [IPv4 / IPv6] #44

witoldmetel opened this issue Apr 23, 2020 · 1 comment

Comments

@witoldmetel
Copy link

witoldmetel commented Apr 23, 2020

Hello,
I've got proposal to extend functionality of (nextIPNumber / previousIPNumber).
We can pass optional argument i.e. count into previous method and based on that count, generate next (or previous) ip number increased (or decreased) by this count.

Examples:

IPv4

init IP Number: 192.168.1.1
count: 10
next IP Number: 192.168.1.11
previous IP Number: 192.168.0.247

IPv6

init IP Number: 1::1
count: 10
next IP Number: 1000:0:0:0:0:0:b
previous IP Number: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff7

@dadepo
Copy link
Member

dadepo commented Apr 26, 2020

Thanks for this suggestions.

It falls under a broader improvement to unify the iterable within the library. I created the issue #45 to think about and work on this.

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

No branches or pull requests

2 participants