pub fn parse_ikev2_message<'a>(i: &[u8]) -> IResult<&[u8],(IkeV2Header,Result<Vec<IkeV2Payload>,&'static str>)> {
    do_parse!(
        i,
        hdr: parse_ikev2_header >>
             error_if!(hdr.length < 28, ErrorKind::Custom(128) ) >>
        msg: flat_map!(take!(hdr.length-28), call!(parse_ikev2_payload_list, hdr.next_payload)) >>
        ( hdr,msg )
    )
}
/// Parse an IKEv2 message
///
/// Parse the IKEv2 header and payload list
Parse an IKEv2 message
Parse the IKEv2 header and payload list
Parse an IKEv2 message Parse the IKEv2 header and payload list
pub fn parse_ikev2_message<'a>(i: &[u8]) -> IResult<&[u8],(IkeV2Header,Result<Vec<IkeV2Payload>,&'static str>)> {
    do_parse!(
        i,
        hdr: parse_ikev2_header >>
             error_if!(hdr.length < 28, ErrorKind::Custom(128) ) >>
        msg: flat_map!(take!(hdr.length-28), call!(parse_ikev2_payload_list, hdr.next_payload)) >>
        ( hdr,msg )
    )
}
pub fn parse_ikev2_message < ' a > ( i : & [ u8 ] ) -> IResult < & [ u8 ] , ( IkeV2Header , Result < Vec < IkeV2Payload > , & ' static str > ) > { do_parse ! ( i hdr parse_ikev2_header error_if ( hdr length 28 ErrorKind Custom ( 128 ) ) msg flat_map ( take ( hdr length 28 ) call ( parse_ikev2_payload_list hdr next_payload ) ) ( hdr msg ) ) }
Parse an IKEv2 message
Parse the IKEv2 header and payload list
Parse an IKEv2 message Parse the IKEv2 header and payload list
i
&[u8]