pub fn parse_openvpn_udp(i: &[u8]) -> IResult<&[u8], OpenVPNPacket> {
    let (i, hdr) = parse_openvpn_header_udp(i)?;
    let (i, msg) = parse_openvpn_msg_payload(hdr.opcode)(i)?;
    Ok((i, OpenVPNPacket { hdr, msg }))
}
/// Parse an OpenVPN packet in UDP
///
/// Note that this will consume the entire buffer
Parse an OpenVPN packet in UDP
Note that this will consume the entire buffer
Parse an OpenVPN packet in UDP Note that this will consume the entire buffer
pub fn parse_openvpn_udp(i: &[u8]) -> IResult<&[u8], OpenVPNPacket> {
    let (i, hdr) = parse_openvpn_header_udp(i)?;
    let (i, msg) = parse_openvpn_msg_payload(hdr.opcode)(i)?;
    Ok((i, OpenVPNPacket { hdr, msg }))
}
pub fn parse_openvpn_udp ( i : & [ u8 ] ) -> IResult < & [ u8 ] , OpenVPNPacket > { let ( i , hdr ) = parse_openvpn_header_udp ( i ) ? ; let ( i , msg ) = parse_openvpn_msg_payload ( hdr . opcode ) ( i ) ? ; Ok ( ( i , OpenVPNPacket { hdr , msg } ) ) }
Parse an OpenVPN packet in UDP
Note that this will consume the entire buffer
Parse an OpenVPN packet in UDP Note that this will consume the entire buffer
i
&[u8]