Function netstack_testing_common::packets::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.