field_map

Function field_map 

Source
fn field_map(header: &PacketHeader, len: usize) -> Vec<Option<Field>>
Expand description

Attribute every byte of packet to the field it belongs to.

The layout is reconstructed from the landmarks PacketHeader already computed (options, body, and MIC ranges plus the SECINFO length), so it stays in step with the parser rather than re-deriving the wire format.