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

IN6_ADDR.ToString prints wrong-endian hextets #388

Closed
alxu-avpt opened this issue Apr 5, 2023 · 0 comments
Closed

IN6_ADDR.ToString prints wrong-endian hextets #388

alxu-avpt opened this issue Apr 5, 2023 · 0 comments

Comments

@alxu-avpt
Copy link

Describe the bug and how to reproduce

Console.WriteLine(new Ws2_32.IN6_ADDR(new byte[] {0xaa, 0xbb, 0xcc, 0xdd, 0xaa, 0xbb, 0xcc, 0xdd, 0xaa, 0xbb, 0xcc, 0xdd, 0xaa, 0xbb, 0xcc, 0xdd}));

Expected behavior

aabb:ccdd:aabb:ccdd:aabb:ccdd:[dotted quad]

Actual behavior

bbaa:ddcc:bbaa:ddcc:bbaa:ddcc:187.170.221.204

Additional information

Thanks for your excellent library!

@dahall dahall closed this as completed Apr 8, 2023
dahall added a commit that referenced this issue Apr 11, 2023
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