[][src]Function ssh_parser::parse_ssh_packet

pub fn parse_ssh_packet(i: &[u8]) -> IResult<&[u8], (SshPacket<'_>, &[u8])>

Parse a plaintext SSH packet with its padding.

Packet structure is defined in RFC4253 Section 6 and message codes are defined in RFC4253 Section 12.