mirror of https://github.com/aya-rs/aya
Add src/generated/netlink_bindings.rs to repo
parent
af8f769b50
commit
1de392964b
@ -0,0 +1,33 @@
|
|||||||
|
/* automatically generated by rust-bindgen 0.55.1 */
|
||||||
|
|
||||||
|
pub const NLMSG_ALIGNTO: u32 = 4;
|
||||||
|
pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1;
|
||||||
|
pub const XDP_FLAGS_SKB_MODE: u32 = 2;
|
||||||
|
pub const XDP_FLAGS_DRV_MODE: u32 = 4;
|
||||||
|
pub const XDP_FLAGS_HW_MODE: u32 = 8;
|
||||||
|
pub const XDP_FLAGS_REPLACE: u32 = 16;
|
||||||
|
pub const XDP_FLAGS_MODES: u32 = 14;
|
||||||
|
pub const XDP_FLAGS_MASK: u32 = 31;
|
||||||
|
pub mod _bindgen_ty_41 {
|
||||||
|
pub type Type = ::std::os::raw::c_uint;
|
||||||
|
pub const IFLA_XDP_UNSPEC: Type = 0;
|
||||||
|
pub const IFLA_XDP_FD: Type = 1;
|
||||||
|
pub const IFLA_XDP_ATTACHED: Type = 2;
|
||||||
|
pub const IFLA_XDP_FLAGS: Type = 3;
|
||||||
|
pub const IFLA_XDP_PROG_ID: Type = 4;
|
||||||
|
pub const IFLA_XDP_DRV_PROG_ID: Type = 5;
|
||||||
|
pub const IFLA_XDP_SKB_PROG_ID: Type = 6;
|
||||||
|
pub const IFLA_XDP_HW_PROG_ID: Type = 7;
|
||||||
|
pub const IFLA_XDP_EXPECTED_FD: Type = 8;
|
||||||
|
pub const __IFLA_XDP_MAX: Type = 9;
|
||||||
|
}
|
||||||
|
#[repr(C)]
|
||||||
|
#[derive(Debug, Copy, Clone)]
|
||||||
|
pub struct ifinfomsg {
|
||||||
|
pub ifi_family: ::std::os::raw::c_uchar,
|
||||||
|
pub __ifi_pad: ::std::os::raw::c_uchar,
|
||||||
|
pub ifi_type: ::std::os::raw::c_ushort,
|
||||||
|
pub ifi_index: ::std::os::raw::c_int,
|
||||||
|
pub ifi_flags: ::std::os::raw::c_uint,
|
||||||
|
pub ifi_change: ::std::os::raw::c_uint,
|
||||||
|
}
|
Loading…
Reference in New Issue