Function parse_tcpv6

Source
fn parse_tcpv6(
    packet_bytes: &[u8],
    origin_map: &Vec<Origin>,
) -> Option<(Reply, bool)>
Expand description

Parse TCPv6 packets (including v6 headers) into a Reply result.

§Arguments

  • packet_bytes - the bytes of the packet to parse

  • origin_map - mapping of origin to origin ID

§Returns

  • Option<Reply> - the received TCP reply

§Remarks

The function returns None if the packet is too short to contain a TCP header.