summaryrefslogtreecommitdiffstats
path: root/src/router/messages.rs
blob: d09bbb3ab38bf8b206c5630e38daa9210c779ca4 (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>
}