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

Proposed fix for issue #59 #60

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

Conversation

kovewnikov
Copy link

Here I'm trying to figure out what is the address family of the source socket upon receiving the message from it and if it is a ipv4 socket I convert it to the ipv6 on the fly.

@zpl-zak zpl-zak linked an issue Jan 6, 2025 that may be closed by this pull request
address->sin6_scope_id = sin.sin6_scope_id;
if (sin.sin6_family == AF_INET || (sin.sin6_family == AF_UNSPEC && sin.sin6_len == sizeof(struct sockaddr_in)))
Copy link
Member

@zpl-zak zpl-zak Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linux worker has failed to compile the code since sin does not have sin6_len defined. (afaik the field is only present if SIN6_LEN is defined)

Some adjustments have to be made to account for this difference on Linux platforms, whilst keeping the logic intact.

https://github.com/zpl-c/enet/actions/runs/12627791563/job/35194617740?pr=60#step:4:9

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.

Data transferring between peers on the localhost doesn't work on macOS
2 participants