-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added SSM sockops for OSes that have support but were missing from libc #2756
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon. Please see the contribution instructions for more information. |
src/unix/solarish/mod.rs
Outdated
pub const IP_ADD_SOURCE_MEMBERSHIP: ::c_int = 70; | ||
pub const IP_DROP_SOURCE_MEMBERSHIP: ::c_int = 71; | ||
pub const IP_BLOCK_SOURCE: ::c_int = 72; | ||
pub const IP_UNBLOCK_SOURCE: ::c_int = 73; |
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.
These are not the correct values for illumos (and presumably Solaris) and cause test failures:
bad IP_ADD_SOURCE_MEMBERSHIP value at byte 0: rust: 70 (0x46) != c 23 (0x17)
bad IP_DROP_SOURCE_MEMBERSHIP value at byte 0: rust: 71 (0x47) != c 24 (0x18)
bad IP_BLOCK_SOURCE value at byte 0: rust: 72 (0x48) != c 21 (0x15)
bad IP_UNBLOCK_SOURCE value at byte 0: rust: 73 (0x49) != c 22 (0x16)
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.
Thanks, should be fixed now
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.
Tests pass now. Thanks
@bors r+ |
📌 Commit e7efff4 has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
Closes #2753