summaryrefslogtreecommitdiffstats
path: root/src/router/messages.rs
blob: bec24acd7b9b55762579e5047320c611171becd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
use byteorder::LittleEndian;
use zerocopy::byteorder::{U32, U64};
use zerocopy::{AsBytes, ByteSlice, FromBytes, LayoutVerified};

#[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>,
}