#[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: u8
Protocol version. Always PF_KEY_2.
typ: MessageType
The message type.
errno: u8
Error returned by OS, if any.
sa_typ: SaType
Security association type.
len: u16
Length of the message in 8-byte units.
reserved: u16
Reserved when going to the kernel, diagnostic code when coming from the kernel.
seq: u32
Sequence id for this message.
pid: u32
Process 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