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

parse_sack_blocks

Function parse_sack_blocks 

Source
pub fn parse_sack_blocks(options: &[u8]) -> Vec<SackBlock>
Expand description

Parse SACK blocks from TCP options bytes.

Scans the options field for kind=5 (SACK) and extracts up to 4 blocks. Returns an empty Vec if no SACK option is found.