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

Fix linkname for go 1.23 #31

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

Conversation

royalcat
Copy link

@royalcat royalcat commented Sep 25, 2024

In Go 1.23, developers lock down the usage of go:linkname (golang/go#67401) and didn’t include syscall.Sockaddr.sockaddr and syscall.anyToSockaddr as valid linkname targets. This fix replaces the previously linked functions with code from the standard library.

Honestly, I’m not sure if this fix works since Connect and Sendmsg aren’t covered by tests or examples, and I’m don't know how to test them. But I don’t see why it wouldn’t work.

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