Skip to content

Impossible to construct an in6_addr #58

Closed
@mrmonday

Description

@mrmonday

The new definition of in6_addr:

pub struct in6_addr {
    pub s6_addr: [u8; 16],
    __align: [u32; 0],
}

Link: https://github.com/rust-lang-nursery/libc/blob/e7ff66ba3df6eb0d10953245a2a6fd2ecf082ccd/src/unix/mod.rs#L62

Means that it is now impossible to construct a value of type in6_addr from Rust, outside of the libc crate, since the __align field is private. I've had to fix libpnet to an old version of libc to work around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions