pub struct ArpPacket {
pub hardware_type: ArpHardwareType,
pub protocol_type: EtherType,
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
Hardware type
protocol_type: EtherType
Protocol type
operation: ArpOperation
Operation
sender_hw_addr: MacAddr
Sender hardware address
sender_proto_addr: Ipv4Addr
Sender IPv4 address
target_hw_addr: MacAddr
Target hardware address
target_proto_addr: Ipv4Addr
Target IPv4 address
payload: Vec<u8>
Payload
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArpPacket
impl RefUnwindSafe for ArpPacket
impl Send for ArpPacket
impl Sync for ArpPacket
impl Unpin for ArpPacket
impl UnwindSafe for ArpPacket
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