<!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you in their free time, there are a lot of people in need of help so they need to prioritize to which issues they devote their free time, etc. So try to give most of the information upfront, be concise, show small self-contained examples (nobody has time to create a new cargo project, set up dependencies,...), etc. Help us help you. --> Structs such as [`in6_aliasreq`](https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/netinet6/in6_var.h#L402-L409), [`ifaliasreq`](https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/net/if.h#L390-L401) are missing in libc. We should consider adding them. Custom bindings that I use right now. ```rs #[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
pronebird commentedon Aug 24, 2025
in6_addrlifetimemade it intolib.apple: add `ifaliasreq` and `in6_aliasreq`
Assign utun addresses with ioctls instead of ifconfig
apple: add `ifaliasreq` and `in6_aliasreq`
apple: add `ifaliasreq` and `in6_aliasreq`
apple: add `ifaliasreq` and `in6_aliasreq`