sockaddr_nl for netlink sockets

This commit is contained in:
Alexander Polakov 2015-11-07 15:42:38 +03:00 committed by root
parent e7ff66ba3d
commit 440bd53892

View File

@ -118,6 +118,13 @@ s! {
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}
pub struct sockaddr_nl {
pub nl_family: ::sa_family_t,
nl_pad: ::c_ushort,
pub nl_pid: u32,
pub nl_groups: u32
}
}
pub const FILENAME_MAX: ::c_uint = 4096;