Function packet_formats::testutil::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.