-
Notifications
You must be signed in to change notification settings - Fork 1
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
Why a mix of CIDR and net range? #3
Comments
Hey, Will be done in the next release. What format do you suggest? |
CIDR looks good, that's what most software expect.
Thanks!
Sep 16, 2023 21:55:28 ipapi.is ***@***.***>:
…
Hey,
Will be done in the next release.
What format do you suggest?
—
Reply to this email directly, view it on
GitHub[#3 (comment)],
or
unsubscribe[https://github.com/notifications/unsubscribe-auth/AAICI6P2WWZNJXCWVEJQ4TDX2WOTLANCNFSM6AAAAAA42REIBM].
You are receiving this because you authored the thread.
[Tracking
image][https://github.com/notifications/beacon/AAICI6MMTYUCTDJAL4KFB5LX2WOTLA5CNFSM6AAAAAA42REIBOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTGU4HXS.gif]
|
CIDR doesn't work for all networks. How would you represent the network 1.2.3.4 - 1.2.3.7 in CIDR format? Kind regards, Nikolai |
Well |
You are correct. How do you represent 1.2.3.1 - 1.2.3.7 in CIDR? Not possible with one CIDR address, you have to provide 3 CIDR ranges:
Conclusion: I will probably use the following format to represent IP ranges (Using integers):
Alternative, I can use the following format:
The problem with both of those formats is that they need considerably more space than CIDR format. |
while it takes up more space, it is a consistent 2 variables, rather than breaking up a range into potentially more than 2 cidrs. but i do think the format of choice should be consistent. |
Hi,
I'm curious about this decision to mix CIDR and net range notation. Is there a specific reason? It makes parsing the database a bit more difficult.
Thanks.
The text was updated successfully, but these errors were encountered: