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

Improves IPv6 addresses formatting #416

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

denizzzka
Copy link
Contributor

@denizzzka denizzzka commented Nov 16, 2024

We have lack of support IPv6 addresses formatting, and especially, IPv4 addresses encapsulated into IPv6

This code is never called and IPv4 addresses on IPv6 interfaces logged as 0:0:0:0:0:ffff:bca2:ee5 instead of ::ffff:188.162.14.229

I made own implementation because inet_ntop from glibc internally does redundand buffer copying, uses stringz, errno and not handles rare ::2 address case

@denizzzka denizzzka marked this pull request as ready for review November 16, 2024 06:54
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

Successfully merging this pull request may close these issues.

1 participant