Function parse_esp_encapsulated

Source
pub fn parse_esp_encapsulated(i: &[u8]) -> IResult<&[u8], ESPData<'_>>
Expand description

Parse an encapsulated ESP packet

The type of encapsulated data depends on the first field (spi_index): 0 is a forbidden SPI index, and indicates that the header is an IKE header. Any other value indicates an ESP header.

Note: input is entirely consumed