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

remove native ipv4 #31

Open
SoniEx2 opened this issue Mar 28, 2023 · 3 comments
Open

remove native ipv4 #31

SoniEx2 opened this issue Mar 28, 2023 · 3 comments

Comments

@SoniEx2
Copy link

SoniEx2 commented Mar 28, 2023

protocols as 464XLAT are great and should be the default.

@badeend
Copy link
Collaborator

badeend commented Mar 30, 2023

Could you please elaborate a bit more on what this would entail in the context of WASI? Both from the perspective of WASI embedders and WASI guest (toolchain) code.

@SoniEx2
Copy link
Author

SoniEx2 commented Mar 30, 2023

to put it simple an embedder would have to provide NAT64 (unwrapping IPv6 packets into IPv4 packets) and DNS64 (converting IPv4 DNS records into IPv6 DNS records) which are fairly trivial, and a toolchain would have to provide a 464XLAT CLAT (effectively, encoding IPv4 packets in IPv6 packets).

even if this is completely transparent to the applications, "raw wasi" applications would have to use IPv6 directly, which would hopefully encourage them to just support IPv6 (tho we're certain some folks would opt to only support 464XLAT for no good reason).

@chrysn
Copy link

chrysn commented May 30, 2023

For implementers of the WASI API, this has the advantage that they only have one target to translate WASI operations to. Most OSes have built-in support for IPv4 over IPv6 sockets, so the implementer really has to do one thing only (and then set a few flags such as AI_V4MAPPED=1 or V6ONLY=0).

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

No branches or pull requests

3 participants