::ethernet::udp::

Struct UdpHeader

pub struct UdpHeader {
source_port: Option<uint<16>>,
destination_port: uint<16>,
payload_length: uint<16>,
}

Trait Implementations

impl Serialize<[uint<8>; 8]> for UdpHeader
fn serialize(self) -> [uint<8>; 8]
impl Header for UdpHeader
fn total_length(self) -> uint<16>

Total length of the packet including 8 bytes of header.

fn payload_length(self) -> uint<16>