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 calls to bind always returning EINVAL when using linux.Sock_Addr_In #4613

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fnknda
Copy link

@fnknda fnknda commented Dec 22, 2024

Closes #4612

I didn't know what was better:

  • To create a Sock_Addr struct (and if I should put it on the Sock_Addr_Any union); or
  • To just hard-code 16 on the calculation of sin_zero's size.

I went for the first option on this PR (trying to be closest to Linux's own source code), but won't be a problem to change if requested.

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.

Call to bind(sock, addr) on core:sys/linux with a Sock_Addr_In always returns EINVAL
1 participant