/// Unpack IP packets received from socket as `EchoReply` struct.
Unpack IP packets received from socket as `EchoReply` struct.
Unpack IP packets received from socket as ` EchoReply ` struct .
pub fn decode(addr: IpAddr, buf: &[u8]) -> Result<EchoReply> {
        match addr {
            IpAddr::V4(_) => decode_icmpv4(addr, &buf),
            IpAddr::V6(_) => decode_icmpv6(addr, &buf),
        }
    }
pub fn decode ( addr : IpAddr , buf : & [ u8 ] ) -> Result < EchoReply > { match addr { IpAddr :: V4 ( _ ) => decode_icmpv4 ( addr , & buf ) , IpAddr :: V6 ( _ ) => decode_icmpv6 ( addr , & buf ) , } }
Unpack IP packets received from socket as `EchoReply` struct.
Unpack IP packets received from socket as ` EchoReply ` struct .
addr
IpAddr
buf
&[u8]