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

serialize_sack_blocks

Function serialize_sack_blocks 

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

Serialize SACK blocks into TCP option bytes.

Produces kind(1) + length(1) + N * 8 bytes of block data. At most MAX_SACK_BLOCKS (4) blocks are serialized.