-
Notifications
You must be signed in to change notification settings - Fork 228
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
Provide bind_device_by_index_v{4|6}
methods for linux.
#500
Comments
A pr to add this would be welcome. |
Sure, I'll get to this next week. |
Any update? |
No pr was made, but they're still welcome. |
I'm in the progress of writing one, however I'm not entirely sure how to go about it. |
I just look at the code and we have Lines 2006 to 2045 in c93cdcc
IP_BOUND_IF ?
|
That setting is Apple specific, this is about the Linux socket option. |
I had a similar question and was about to add it myself when I found that SO_BINDTODEVICE option has already been implemented! It was added in 2020 in 6780944, but isn't shown on docs.rs by default due to their platform filtering options. The default platform is unhelpfully the alphabetically first |
Hi, it would be nice if we had the functionality for binding a socket to an interface under linux, since that functionality is available.
The text was updated successfully, but these errors were encountered: