#[repr(C, packed(1))]pub struct Header {
pub version: u8,
pub typ: MessageType,
pub errno: u8,
pub sa_typ: SaType,
pub len: u16,
pub reserved: u16,
pub seq: u32,
pub pid: u32,
}Expand description
A PF_KEY security association header.
Fields§
§version: u8Protocol version. Always PF_KEY_2.
typ: MessageTypeThe message type.
errno: u8Error returned by OS, if any.
sa_typ: SaTypeSecurity association type.
len: u16Length of the message in 8-byte units.
reserved: u16Reserved when going to the kernel, diagnostic code when coming from the kernel.
seq: u32Sequence id for this message.
pid: u32Process id of the sender.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more