Skip to content

Support for IP_FREEBIND on Linux #7229

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

Open
redactedontop opened this issue Mar 22, 2025 · 0 comments
Open

Support for IP_FREEBIND on Linux #7229

redactedontop opened this issue Mar 22, 2025 · 0 comments
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request.

Comments

@redactedontop
Copy link

Is your feature request related to a problem? Please describe.
It's really annoying to have to use socket2 (and SockRef::from(&socket)) just to change freebind, especially as TcpSocket wraps it.

Describe the solution you'd like
I'd like 2 methods like set_nodelay, but for freebind on Linux (IPv4 and IPv6).

Describe alternatives you've considered
Don't see any.

Additional context
socket2's implementation with a cfg to allow the function based on OS (preferably do the same)

@redactedontop redactedontop added A-tokio Area: The main tokio crate C-feature-request Category: A feature request. labels Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request.
Projects
None yet
Development

No branches or pull requests

1 participant