Module arp

Module arp 

Source
Expand description

Contains logic that helps with handling ARP frames over Ethernet, which encapsulate requests or replies related to IPv4 addresses.

A more detailed view of an ARP frame can be found here.

Structs§

EthIPv4ArpFrame
The inner bytes will be interpreted as an ARP frame.

Enums§

ArpError
Represents errors which may occur while parsing or writing a frame.

Constants§

ETH_IPV4_FRAME_LEN
The length of an ARP frame for IPv4 over Ethernet.
HTYPE_ETHERNET
ARP is for Ethernet hardware
OPER_REPLY
ARP Reply operation
OPER_REQUEST
ARP Request operation

Functions§

test_speculative_tpa
This function checks if buf may hold an Ethernet frame which encapsulates an EthIPv4ArpRequest for the given address. Cannot produce false negatives.