[−][src]Function ipsec_parser::parse_esp_header
pub fn parse_esp_header<'a>(i: &'a [u8]) -> IResult<&'a [u8], ESPHeader<'a>>
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