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

generated address doesn't match netmask #1

Open
ple1n opened this issue Apr 23, 2023 · 2 comments
Open

generated address doesn't match netmask #1

ple1n opened this issue Apr 23, 2023 · 2 comments

Comments

@ple1n
Copy link

ple1n commented Apr 23, 2023

> ipgen test -n fc00::/7
f44a:8995:dd50:b665:7a03:7a78:3930:4535

f44a = 1111010001001010
fc00 = 1111110000000000

edit: wrong repo, should have opened in ipgen/rust

@rvbcldud
Copy link

rvbcldud commented Aug 9, 2024

This is odd. The upper 7 bits (1111110) should be preserved, right?

@rvbcldud
Copy link

@planetoryd I have made a PR that addresses your concern. Let me know what you think.

Your key and CIDR should generate the following IP address:

fdfb:c7cb:354d:e09d:badb:9adf:7441:561f

fdfb = 1111110111111011

And has been enshrined into the aforementioned PR as a test case.

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