pub fn check_reply_packet(&self, destination: IpAddr, seq_cnt: u16, identifier: u16) -> bool {
        match self {
            IcmpPacket::V4(packet) => {
                destination.eq(&IpAddr::V4(packet.get_real_dest()))
                    && packet.get_sequence() == seq_cnt
                    && packet.get_identifier() == identifier
            },
            IcmpPacket::V6(packet) => {
                packet.get_sequence() == seq_cnt  && packet.get_identifier() == identifier
            }
        }
    }
/// Check reply Icmp packet is corret.
Check reply Icmp packet is corret.
Check reply Icmp packet is corret .
pub fn check_reply_packet(&self, destination: IpAddr, seq_cnt: u16, identifier: u16) -> bool {
        match self {
            IcmpPacket::V4(packet) => {
                destination.eq(&IpAddr::V4(packet.get_real_dest()))
                    && packet.get_sequence() == seq_cnt
                    && packet.get_identifier() == identifier
            },
            IcmpPacket::V6(packet) => {
                packet.get_sequence() == seq_cnt  && packet.get_identifier() == identifier
            }
        }
    }
pub fn check_reply_packet ( & self , destination : IpAddr , seq_cnt : u16 , identifier : u16 ) -> bool { match self { IcmpPacket :: V4 ( packet ) => { destination . eq ( & IpAddr :: V4 ( packet . get_real_dest ( ) ) ) && packet . get_sequence ( ) == seq_cnt && packet . get_identifier ( ) == identifier } , IcmpPacket :: V6 ( packet ) => { packet . get_sequence ( ) == seq_cnt && packet . get_identifier ( ) == identifier } } }
Check reply Icmp packet is corret.
Check reply Icmp packet is corret .
&self
destination
IpAddr
seq_cnt
u16
identifier
u16