-
Notifications
You must be signed in to change notification settings - Fork 279
Add v4 and v6 versions of bind_device_by_index. #432
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
Add v4 and v6 versions of bind_device_by_index. #432
Conversation
5d3296b to
975f678
Compare
975f678 to
f45c480
Compare
Thomasdezeeuw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing I missed in the first review round.
f45c480 to
dc576c8
Compare
|
@pinkisemils if you apply my suggested changes it should fix the CI. |
4d1e699 to
5262f5f
Compare
Thomasdezeeuw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I messed up the doc links the first time. I tried pushing to the branch, but GitHub wouldn't allow me.
src/sys/unix.rs
Outdated
| .map(|_| ()) | ||
| } | ||
|
|
||
| /// This method is deprecated, use [`Socket2::bind_device_by_index_v4`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// This method is deprecated, use [`Socket2::bind_device_by_index_v4`]. | |
| /// This method is deprecated, use [`Socket::bind_device_by_index_v4`]. | |
| /// | |
| /// [`Socket::bind_device_by_index_v4`]: crate::Socket::bind_device_by_index_v4 |
src/sys/unix.rs
Outdated
| Ok(NonZeroU32::new(index)) | ||
| } | ||
|
|
||
| /// This method is deprecated, use [`Socket::device_index_v4`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// This method is deprecated, use [`Socket::device_index_v4`]. | |
| /// This method is deprecated, use [`Socket::device_index_v4`]. | |
| /// | |
| /// [`Socket::device_index_v4`]: crate::Socket::device_index_v4 |
5262f5f to
28d6de7
Compare
|
Thanks for sticking with this @pinkisemils, sorry it took a little while. |
I've added IPvX versioned functions for
bind_device_by_indexand deprecated the original, as discussed in #413.I've added a change log entry (and thus tentatively declaring a new verison), but I'm unsure if that's the correct thing to do here.