libc/new/linux_uapi/linux/
if_addr.rs1use crate::prelude::*;
4
5#[automatically_derived]
#[allow(deprecated)]
impl ::core::clone::Clone for ifaddrmsg {
#[inline]
fn clone(&self) -> ifaddrmsg {
let _: ::core::clone::AssertParamIsClone<u8>;
let _: ::core::clone::AssertParamIsClone<u32>;
*self
}
}
#[automatically_derived]
#[allow(deprecated)]
impl ::core::marker::Copy for ifaddrmsg { }
#[automatically_derived]
#[allow(deprecated)]
impl ::core::fmt::Debug for ifaddrmsg {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
::core::fmt::Formatter::debug_struct_field5_finish(f, "ifaddrmsg",
"ifa_family", &self.ifa_family, "ifa_prefixlen",
&self.ifa_prefixlen, "ifa_flags", &self.ifa_flags, "ifa_scope",
&self.ifa_scope, "ifa_index", &&self.ifa_index)
}
}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
15pub const IFA_UNSPEC: c_ushort = 0;
16pub const IFA_ADDRESS: c_ushort = 1;
17pub const IFA_LOCAL: c_ushort = 2;
18pub const IFA_LABEL: c_ushort = 3;
19pub const IFA_BROADCAST: c_ushort = 4;
20pub const IFA_ANYCAST: c_ushort = 5;
21pub const IFA_CACHEINFO: c_ushort = 6;
22pub const IFA_MULTICAST: c_ushort = 7;
23pub const IFA_FLAGS: c_ushort = 8;
24
25pub const IFA_F_SECONDARY: u32 = 0x01;
26pub const IFA_F_TEMPORARY: u32 = 0x01;
27pub const IFA_F_NODAD: u32 = 0x02;
28pub const IFA_F_OPTIMISTIC: u32 = 0x04;
29pub const IFA_F_DADFAILED: u32 = 0x08;
30pub const IFA_F_HOMEADDRESS: u32 = 0x10;
31pub const IFA_F_DEPRECATED: u32 = 0x20;
32pub const IFA_F_TENTATIVE: u32 = 0x40;
33pub const IFA_F_PERMANENT: u32 = 0x80;
34pub const IFA_F_MANAGETEMPADDR: u32 = 0x100;
35pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
36pub const IFA_F_MCAUTOJOIN: u32 = 0x400;
37pub const IFA_F_STABLE_PRIVACY: u32 = 0x800;