Struct dhcp4r::packet::Packet[][src]

pub struct Packet {
    pub reply: bool,
    pub hops: u8,
    pub xid: u32,
    pub secs: u16,
    pub broadcast: bool,
    pub ciaddr: Ipv4Addr,
    pub yiaddr: Ipv4Addr,
    pub siaddr: Ipv4Addr,
    pub giaddr: Ipv4Addr,
    pub chaddr: [u8; 6],
    pub options: Vec<DhcpOption>,
}
Expand description

DHCP Packet Structure

Fields

reply: boolhops: u8xid: u32secs: u16broadcast: boolciaddr: Ipv4Addryiaddr: Ipv4Addrsiaddr: Ipv4Addrgiaddr: Ipv4Addrchaddr: [u8; 6]options: Vec<DhcpOption>

Implementations

Extracts requested option payload from packet if available

Convenience function for extracting a packet’s message type.

Creates byte array DHCP packet

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.