Skip to content

darwin: add in6_aliasreq, ifaliasreq structs #4435

Closed

Description

@pronebird

Structs such as in6_aliasreq, ifaliasreq are missing in libc. We should consider adding them.

Custom bindings that I use right now.

#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct in6_aliasreq {
    pub ifra_name: [c_char; IFNAMSIZ],
    pub ifra_addr: sockaddr_in6,
    pub ifra_dstaddr: sockaddr_in6,
    pub ifra_prefixmask: sockaddr_in6,
    pub ifra_flags: c_int,
    pub ifra_lifetime: in6_addrlifetime,
}

#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ifaliasreq {
    pub ifra_name: [c_char; IFNAMSIZ],
    pub ifra_addr: sockaddr,
    pub ifra_broadaddr: sockaddr,
    pub ifra_mask: sockaddr,
}

Activity

  1. pronebird commented on Aug 24, 2025

    @pronebird
    Author

    in6_addrlifetime made it into lib.

  2. added a commit that references this issue on Sep 30, 2026
    da75a90
  3. added a commit that references this issue on Oct 7, 2026
    d819833
  4. added 2 commits that reference this issue on Oct 16, 2026
    d490042
    9c7f568
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions