Module arp

Module arp 

Source
Expand description

ARP (Address Resolution Protocol)

This module provides ARP implementation for resolving IP addresses to MAC addresses. It implements the NetworkLayer trait and manages an ARP cache.

Modules§

operation
ARP operation types

Structs§

ArpCacheEntry
ARP cache entry
ArpLayer
ARP layer
ArpPacket
ARP packet header (28 bytes)
ArpPendingEntry 🔒
ARP cache entry with packet queue

Enums§

ArpEntryState
ARP entry state

Constants§

HLEN_ETHERNET
Hardware address length for Ethernet (6 bytes)
HTYPE_ETHERNET
Hardware type (Ethernet)
PLEN_IPV4
Protocol address length for IPv4 (4 bytes)
PTYPE_IPV4
Protocol type (IPv4)

Type Aliases§

ArpCacheKey 🔒
ARP cache key: (interface_name, IP as u32)
ArpPendingKey 🔒
ARP pending key: (interface_name, IP as u32)