Struct xenet_packet::dhcp::Dhcp
source · pub struct Dhcp {Show 16 fields
pub op: DhcpOperation,
pub htype: DhcpHardwareType,
pub hlen: u8,
pub hops: u8,
pub xid: u32be,
pub secs: u16be,
pub flags: u16be,
pub ciaddr: Ipv4Addr,
pub yiaddr: Ipv4Addr,
pub siaddr: Ipv4Addr,
pub giaddr: Ipv4Addr,
pub chaddr: MacAddr,
pub chaddr_pad: Vec<u8>,
pub sname: Vec<u8>,
pub file: Vec<u8>,
pub options: Vec<u8>,
}Expand description
Represents an DHCP Packet.
Fields§
§op: DhcpOperation§htype: DhcpHardwareType§hlen: u8§hops: u8§xid: u32be§secs: u16be§flags: u16be§ciaddr: Ipv4Addr§yiaddr: Ipv4Addr§siaddr: Ipv4Addr§giaddr: Ipv4Addr§chaddr: MacAddr§chaddr_pad: Vec<u8>§sname: Vec<u8>§file: Vec<u8>§options: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Dhcp
impl Send for Dhcp
impl Sync for Dhcp
impl Unpin for Dhcp
impl UnwindSafe for Dhcp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more