⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module ip

Module ip 

Source
Expand description

IP layer implementation

Handles IPv4 packet construction, parsing, routing, and fragmentation. Provides the foundation for TCP and UDP transport protocols.

Structs§

InterfaceConfig
Interface IP configuration
Ipv4Header
IPv4 header
RouteEntry
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 route shell 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).