blob: bf4d13b5b4763d13ba359d532e47b0fe0c86ce56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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>,
}
|