aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / libc / src / new / linux_uapi / linux / if_addr.rs
| 1 | //! Header: `uapi/linux/if_addr.h` |
| 2 | |
| 3 | use crate::prelude::*; |
| 4 | |
| 5 | s! { |
| 6 | pub struct ifaddrmsg { |
| 7 | pub ifa_family: u8, |
| 8 | pub ifa_prefixlen: u8, |
| 9 | pub ifa_flags: u8, |
| 10 | pub ifa_scope: u8, |
| 11 | pub ifa_index: u32, |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | pub const IFA_UNSPEC: c_ushort = 0; |
| 16 | pub const IFA_ADDRESS: c_ushort = 1; |
| 17 | pub const IFA_LOCAL: c_ushort = 2; |
| 18 | pub const IFA_LABEL: c_ushort = 3; |
| 19 | pub const IFA_BROADCAST: c_ushort = 4; |
| 20 | pub const IFA_ANYCAST: c_ushort = 5; |
| 21 | pub const IFA_CACHEINFO: c_ushort = 6; |
| 22 | pub const IFA_MULTICAST: c_ushort = 7; |
| 23 | pub const IFA_FLAGS: c_ushort = 8; |
| 24 | |
| 25 | pub const IFA_F_SECONDARY: u32 = 0x01; |
| 26 | pub const IFA_F_TEMPORARY: u32 = 0x01; |
| 27 | pub const IFA_F_NODAD: u32 = 0x02; |
| 28 | pub const IFA_F_OPTIMISTIC: u32 = 0x04; |
| 29 | pub const IFA_F_DADFAILED: u32 = 0x08; |
| 30 | pub const IFA_F_HOMEADDRESS: u32 = 0x10; |
| 31 | pub const IFA_F_DEPRECATED: u32 = 0x20; |
| 32 | pub const IFA_F_TENTATIVE: u32 = 0x40; |
| 33 | pub const IFA_F_PERMANENT: u32 = 0x80; |
| 34 | pub const IFA_F_MANAGETEMPADDR: u32 = 0x100; |
| 35 | pub const IFA_F_NOPREFIXROUTE: u32 = 0x200; |
| 36 | pub const IFA_F_MCAUTOJOIN: u32 = 0x400; |
| 37 | pub const IFA_F_STABLE_PRIVACY: u32 = 0x800; |