Function ipsec_parser::parse_esp_header [−][src]
pub fn parse_esp_header(i: &[u8]) -> IResult<&[u8], ESPHeader<'_>>
Expand description
Parse an ESP packet
The ESP header contains:
- the SPI index
- the sequence number
- the payload data (which can be encrypted)
Note: input is entirely consumed