14 lines
341 B
Rust
14 lines
341 B
Rust
use byteorder::LittleEndian;
|
|
use zerocopy::byteorder::{U32, U64};
|
|
use zerocopy::{AsBytes, FromBytes};
|
|
|
|
pub const TYPE_TRANSPORT: u32 = 4;
|
|
|
|
#[repr(packed)]
|
|
#[derive(Copy, Clone, FromBytes, AsBytes)]
|
|
pub struct TransportHeader {
|
|
pub f_type: U32<LittleEndian>,
|
|
pub f_receiver: U32<LittleEndian>,
|
|
pub f_counter: U64<LittleEndian>,
|
|
}
|