Struct xenet_packet::arp::Arp
source · pub struct Arp {
pub hardware_type: ArpHardwareType,
pub protocol_type: EtherType,
pub hw_addr_len: u8,
pub proto_addr_len: u8,
pub operation: ArpOperation,
pub sender_hw_addr: MacAddr,
pub sender_proto_addr: Ipv4Addr,
pub target_hw_addr: MacAddr,
pub target_proto_addr: Ipv4Addr,
pub payload: Vec<u8>,
}
Expand description
Represents an ARP Packet.
Fields§
§hardware_type: ArpHardwareType
§protocol_type: EtherType
§hw_addr_len: u8
§proto_addr_len: u8
§operation: ArpOperation
§sender_hw_addr: MacAddr
§sender_proto_addr: Ipv4Addr
§target_hw_addr: MacAddr
§target_proto_addr: Ipv4Addr
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Arp
impl Send for Arp
impl Sync for Arp
impl Unpin for Arp
impl UnwindSafe for Arp
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