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§
- EthI
Pv4Arp Frame - 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
bufmay hold an Ethernet frame which encapsulates anEthIPv4ArpRequestfor the given address. Cannot produce false negatives.