fn parse_tcpv4(
packet_bytes: &[u8],
origin_map: &Vec<Origin>,
) -> Option<(Reply, bool)>Expand description
Parse TCPv4 packets (including v4 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.