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