Module ipv4

Module ipv4 

Source
Expand description

IPv4 protocol layer

This module provides IPv4 packet handling for the network stack. It implements the NetworkLayer trait for IPv4 encapsulation/decapsulation.

§Design

The Ipv4Layer manages:

  • Multiple IPv4 addresses per interface (primary + secondary)
  • Routing table for destination-based forwarding
  • Source IP selection based on routing decisions

This design supports multiple network interfaces with multiple IP addresses each.

Modules§

protocol
IPv4 protocol numbers

Structs§

Ipv4Address
IPv4 address
Ipv4AddressInfo
IPv4 address information for an interface
Ipv4Header
IPv4 header (minimum 20 bytes)
Ipv4Layer
IPv4 layer
RouteEntry
Routing table entry

Functions§

checksum_from_bytes 🔒