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

FreeBSD Support within easy reach(?) #4471

Open
benthor opened this issue Feb 22, 2024 · 1 comment
Open

FreeBSD Support within easy reach(?) #4471

benthor opened this issue Feb 22, 2024 · 1 comment
Labels
workitem Something needs doing

Comments

@benthor
Copy link
Contributor

benthor commented Feb 22, 2024

I managed to build almost all SCION components under FreeBSD 14.0 with only minor modifications to https://github.com/scionproto/scion/blob/master/private/underlay/conn/conn.go:

Go's syscalls module doesn't define MSG_WAITFORONE for FreeBSD, but per recvmsg(2) it is also a valid flag under FreeBSD. Looking up its value (0x00080000) in /usr/include/sys/socket.h and entering it as a literal worked as a first PoC.

The SCION gateway is the only component that would need a non-trivial patch to work under FreeBSD, since the upstream library to manage TUN/TAP devices only supports Windows, Linux and MacOS.

Overall, FreeBSD Support for SCION seems within easy reach. I can't do it myself at the moment, any takers?

@benthor benthor added the workitem Something needs doing label Feb 22, 2024
@matzf
Copy link
Member

matzf commented May 2, 2024

The syscalls.MSG_WAITFORONE bit has been fixed in #4507.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workitem Something needs doing
Projects
None yet
Development

No branches or pull requests

2 participants