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

iprange will read integer/numeric! #25

Open
Jas0n99 opened this issue Dec 2, 2018 · 2 comments
Open

iprange will read integer/numeric! #25

Jas0n99 opened this issue Dec 2, 2018 · 2 comments

Comments

@Jas0n99
Copy link

Jas0n99 commented Dec 2, 2018

This isn't directly mentioned on the wiki page, but I had a hunch and after experimenting I found out that iprange will read numeric notation directly! So something like:

iprange 18279424 -> 1.22.236.0
iprange 18279424/24 -> 1.22.236.0/24
iprange 18279424-18279679 -> 1.22.236.0/24

Pretty nifty! That's less conversion back & forth when storing IPs in numeric / integer form.

@Jas0n99 Jas0n99 changed the title iprange will read numeric! iprange will read integer/numeric! Dec 2, 2018
@ktsaou
Copy link
Member

ktsaou commented Dec 3, 2018

Yes it does!
It would also be nice to add an option to output in this format too...

@Jas0n99
Copy link
Author

Jas0n99 commented Dec 3, 2018

Yes it would cool if it could output in integer form too, that would make loading into MySQL much more streamlined. But using the mysql built-in functions isn't really a big deal. I'm sure there are other instances though that would be helpful to some.

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