Skip to content

Conversation

@ivangalkin
Copy link

This PR makes server to be compilable on Darwin (as well as on BSD-like systems). The PR #50 is required in order DIAL server to be able to start correctly. Server serves multicast & HTTP requests correctly. Unfortunately detection of "applications" doesn't works since it's based on the /proc/ file system.

Nevertheless I believe it's worth enabling the server on Darwin, since it allows at least some rudimentary testing.

P.S. faking SIOCGIFHWADDR is a hack but seems to be stable due to OS's backwards compatibility. Implementation of the IP/MAC detection via getifaddrs() would be more preferable. However even it doesn't guarantee portability and requires distinguishing between AF_PACKET/AF_LINK (and sockaddr_ll/sockaddr_dl respectively).

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