feat(s2n-quic-platform): add a new Tokio IO API to configure only_v6 #2473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release Summary:
Allow users to configure only_v6 settings through a new Tokio IO API.
Resolved issues:
resolves #2316
Description of changes:
only_v6
in the Tokio builder and awith_only_v6()
method to configure it.syscall::bind_udp()
, so that the value will be passed top down.syscall::udp_socket()
function calls.set_only_v6()
to configure if the socket should only communicate in IPV6 or not.Call-outs:
false
, since the default value for boolean isfalse
. The default is not changed.xdp.rs
also calls forudp_socket()
and I set the only_v6 to false. We shouldn't change that behavior.Testing:
syscall::bind_udp()
. We should verify if the resultant socket has only_v6 set up as expected.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.