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

router: factor out platform-dependent underlay conn flags #4507

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

marcfrei
Copy link
Contributor

@marcfrei marcfrei commented Apr 18, 2024

The use of the platform-dependent flag syscall.MSG_WAITFORONE prevents building the router on platforms other than Linux. This change isolates this dependency. Behavior on non-Linux platforms will be less efficient but still semantically correct because ReadBatch will only read a single message on those platforms anyway.

Together with the previous PR #4499 and the dispatcher removal PR #4344 this set of changes will, e.g., enable running local development topologies on platforms other than Linux.

Fixes #4046.

The use of the platform-dependent flag syscall.MSG_WAITFORONE prevents
building the router on platforms other than Linux. This change isolates
this dependency. Behavior on non-Linux platforms will be less efficient
but still semantically correct because ReadBatch will only read a single
message on those platforms anyway.

Together with the dispatcher removal PR scionproto#4344 this set of changes will,
e.g., enable running local development topologies on platforms other than
Linux.
@matzf
Copy link
Contributor

matzf commented Apr 18, 2024

This change is Reviewable

Copy link
Contributor

@matzf matzf left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 3 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @marcfrei)

@matzf matzf merged commit f248f15 into scionproto:master Apr 18, 2024
4 checks passed
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.

Remove Linux-Only Features
2 participants