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

packed fails for IPv6 address #61

Open
hesingh opened this issue Mar 28, 2021 · 0 comments
Open

packed fails for IPv6 address #61

hesingh opened this issue Mar 28, 2021 · 0 comments

Comments

@hesingh
Copy link

hesingh commented Mar 28, 2021

The IPv6 address is 2002::1. So why does packednot include the inner "2" in the IPv6 address?

>>> 
>>> ip = ipaddress.ip_address('2002::1')
>>> ip
IPv6Address('2002::1')
>>> ip.packed
b' \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
>>> 
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

1 participant