Skip to main content

parse_header

Function parse_header 

Source
pub fn parse_header<R: BufRead>(reader: &mut R) -> Result<TextDumpHeader>
Expand description

Parse the preamble to extract router metadata and fixed-width column offsets.

Consumes lines up to and including the column header line (Network / Next Hop / Metric / LocPrf / Weight / Path); the reader is left positioned at the first route line.