Expand description
IP layer implementation
Handles IPv4 packet construction, parsing, routing, and fragmentation. Provides the foundation for TCP and UDP transport protocols.
Structs§
- Interface
Config - Interface IP configuration
- Ipv4
Header - IPv4 header
- Route
Entry - Routing table entry
Enums§
- IpProtocol
- IP protocol numbers
Functions§
- add_
route - Add a route
- get_
interface_ config - Get the current interface configuration.
- get_
interface_ ip - Get the currently configured interface IP address.
- get_
routes - Get all routing table entries (used by
routeshell command). - init
- Initialize IP layer
- lookup_
route - Lookup route for destination
- send
- Send IP packet
- set_
interface_ config - Set the interface IP configuration (called by DHCP or manual config).