packet_formats::testutil

Function verify_ipv6_packet

Source
pub fn verify_ipv6_packet(
    packet: &Ipv6Packet<&[u8]>,
    expected: TestPacket<Ipv6PacketMetadata>,
)
Expand description

Verify that a parsed IPv6 packet is as expected.

Ensures the parsed packet’s header fields and body are equal to those in the test packet.