Struct xenet_packet::arp::ArpHeader
source · pub struct ArpHeader {
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,
}
Expand description
Represents the ARP header.
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
Implementations§
Trait Implementations§
source§impl PartialEq for ArpHeader
impl PartialEq for ArpHeader
impl Eq for ArpHeader
impl StructuralEq for ArpHeader
impl StructuralPartialEq for ArpHeader
Auto Trait Implementations§
impl RefUnwindSafe for ArpHeader
impl Send for ArpHeader
impl Sync for ArpHeader
impl Unpin for ArpHeader
impl UnwindSafe for ArpHeader
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