-
Notifications
You must be signed in to change notification settings - Fork 3
feat(ip_range): add support for iprange type #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
feat(ip_range): add support for iprange type #1
Conversation
The bit representation for the As I do not want to spoil your fun I hid the details I found in the extension source for that format behind collapsible boxes. Hopefully they are not expanded in any notification mail you might receive so you can decide for yourself how deep you want to dive 😅 ExUnit test to get byte formatYou can generate yourself some tests to look at the "wire data":
Encoding and Decoding should always have the same values so only reading yields a more or less useful error message:
Everything before the first IPRange byte formatLooking at the the ip4r source the The
Looks like we get a 4-byte-size first and then some various options depending on the range itself:
|
2fa0a94
to
109b227
Compare
a4e824c
to
5622809
Compare
0b1c7ea
to
5e4f49c
Compare
5e4f49c
to
7c4d87d
Compare
❤️ 💚 💙 💛 💜 |
I believe the PR is now complete. Please take a look and let's see if we can't get this published into a new version of your lib.
Thanks in advance.