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: bool
hops: u8
xid: u32
secs: u16
broadcast: bool
ciaddr: Ipv4Addr
yiaddr: Ipv4Addr
siaddr: Ipv4Addr
giaddr: Ipv4Addr
chaddr: [u8; 6]
options: Vec<DhcpOption>
Implementations
Extracts requested option payload from packet if available
Convenience function for extracting a packet’s message type.