Skip to main content

parse_frame

Function parse_frame 

Source
pub fn parse_frame(frame: &[u8]) -> Result<ArpMessage, ParseError>
Available on crate feature arp only.
Expand description

Parse an Ethernet frame whose EtherType is ARP (0x0806).

Returns Err if the frame is truncated, isn’t ARP, or fails the ARP-specific parse checks. Handles a single 802.1Q VLAN tag transparently (most real captures aren’t multi-tag ARP).

Issue #1 (0.17). Signature changed to Result in issue #85.