pub fn verify_tcp_segment(
segment: &TcpSegment<&[u8]>,
expected: TestPacket<TcpSegmentMetadata>,
)
Expand description
Verify that a parsed TCP segment is as expected.
Ensures the parsed packet’s header fields and body are equal to those in the test packet.