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

process_packet

Function process_packet 

Source
pub fn process_packet(
    src_addr: IpAddress,
    _dst_addr: IpAddress,
    data: &[u8],
) -> Result<(), KernelError>
Expand description

Process incoming TCP packet (called by IP layer).

Parses the TCP header, finds the matching connection in the connection table, and dispatches to the state machine.