Function parse_ssh_packet

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

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.