netstack_testing_common::packets

Function parse_dhcpv6

Source
pub fn parse_dhcpv6(buf: &[u8]) -> Option<Message<'_, &[u8]>>
Expand description

Parse a packet as a DHCPv6 message.

Returns None if the packet is not DHCPv6 in UDP in IPv6 in Ethernet.

ยงPanics

Panics if parsing fails at any layer.