Skip to main content

parse_descriptor

Function parse_descriptor 

Source
pub fn parse_descriptor(
    value: &str,
    version: IcmpVersion,
) -> Result<IcmpSpec, String>
Expand description

Parse an ICMP specification string using the provided IP version.

Accepts numeric type/code ("8:0") or a limited set of aliases such as "echo-request", "echo-reply", "time-exceeded", and "packet-too-big".