Skip to main content

Module neighbor

Module neighbor 

Source
Expand description

Neighbor resolution system for automatic MAC address lookup.

which automatically resolves destination MAC addresses based on the network layer protocol being used.

For example:

  • ARP requests should use broadcast MAC (ff:ff:ff:ff:ff:ff)
  • IP packets need ARP resolution to find the destination MAC
  • Multicast IPs map to specific multicast MACs

Structs§

ArpCache
ARP cache for storing resolved MAC addresses.
CacheEntry
Neighbor cache entry with expiration.
NdpCache
IPv6 neighbor cache.
NeighborCache
Registry for neighbor resolvers.

Traits§

NeighborResolver
Trait for neighbor resolution.

Functions§

ipv4_multicast_mac
Get multicast MAC for IPv4 multicast address.
ipv6_multicast_mac
Get multicast MAC for IPv6 multicast address.
is_ipv4_multicast
Check if an IPv4 address is multicast.
is_ipv6_multicast
Check if an IPv6 address is multicast.
solicited_node_multicast
Solicited-node multicast address for IPv6.

Type Aliases§

ResolverFn
A resolver function type for determining destination MAC addresses.