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

The wrong return value is set for the network connection of IPv6. #161

Open
ken4647 opened this issue Jan 13, 2025 · 0 comments
Open

The wrong return value is set for the network connection of IPv6. #161

ken4647 opened this issue Jan 13, 2025 · 0 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@ken4647
Copy link
Contributor

ken4647 commented Jan 13, 2025

It appears that getaddrinfo() is prone to failure in Musl. Further investigation revealed that this issue is related to the IPv6 protocol, as RuxOS does not yet support IPv6.
image
To be precise, I found a piece of code similar to this in musl libc:

#define EAFNOSUPPORT    97  /* Address family not supported by protocol */

However, the return value provided in the above figure is:

#define EINVAL          22     /* Invalid argument */

Therefore, it is currently necessary to fix this return value error or to add support for IPv6.

@ken4647 ken4647 added the invalid This doesn't seem right label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants