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

UDP: Enable sending and receiving of per-packet options #59

Closed
wants to merge 1 commit into from

Conversation

badeend
Copy link
Collaborator

@badeend badeend commented Sep 10, 2023

Caveat: the following options are enabled unconditionally:

  • IP_RECVTTL/IPV6_RECVHOPLIMIT
  • IP_RECVTOS/IPV6_RECVTCLASS
  • IP_RECVPKTINFO/IPV6_RECVPKTINFO

The primary goal of these changes is to kickstart WASI's UDP capabilities and enable workloads that we couldn't run before.
I doubt these 32-ish additional bytes are going to cause any performance issues for the average program, but if they ever do we can always add a "diet" version of receive without these fields.

Fixes #38

@badeend badeend force-pushed the udp-send-receive-metadata branch from 59bc4ca to 43e23e7 Compare September 10, 2023 14:23
@badeend badeend force-pushed the udp-send-receive-metadata branch from 43e23e7 to fb2a4fb Compare September 10, 2023 14:41
@badeend
Copy link
Collaborator Author

badeend commented Nov 11, 2023

To be reevaluated after preview2

@badeend badeend closed this Nov 11, 2023
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.

UDP: Local address should be regularly available
1 participant