Skip to content
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

in6_addr has private fields #41

Closed
dimbleby opened this issue Nov 4, 2015 · 1 comment
Closed

in6_addr has private fields #41

dimbleby opened this issue Nov 4, 2015 · 1 comment

Comments

@dimbleby
Copy link
Contributor

dimbleby commented Nov 4, 2015

The private __align field makes it hard to construct an in6_addr.

dimbleby added a commit to dimbleby/rust-c-ares that referenced this issue Nov 4, 2015
@alexcrichton
Copy link
Member

Yeah for now I'd create instances with mem::uninitialized or mem::zeroed (as you would in C) and then set the fields manually. Unfortunately without a way to specify a custom alignment I don't know of a way around this :(

The good news though is that if we gain the ability to do so the code will be backwards compatible for when the private field is removed!

danielverkamp pushed a commit to danielverkamp/libc that referenced this issue Apr 28, 2020
tgross35 pushed a commit to tgross35/rust-libc that referenced this issue Feb 22, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this issue Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants