pub fn send_icmpv4_destination_port_unreachable(
        &mut self,
        dst_ip_addr: Ipv4Addr,
        src_ip_addr: Ipv4Addr,
        payload: &[u8],
    ) -> io::Result<()> {
        // ICMPv4
        let icmpv4 = Icmpv4::new_destination_port_unreachable(payload);

        self.send_ipv4(dst_ip_addr, src_ip_addr, Layers::Icmpv4(icmpv4), None)
    }
/// Sends an ICMPv4 destination port unreachable packet.
Sends an ICMPv4 destination port unreachable packet.
Sends an ICMPv4 destination port unreachable packet .
pub fn send_icmpv4_destination_port_unreachable(
        &mut self,
        dst_ip_addr: Ipv4Addr,
        src_ip_addr: Ipv4Addr,
        payload: &[u8],
    ) -> io::Result<()> {
        // ICMPv4
        let icmpv4 = Icmpv4::new_destination_port_unreachable(payload);
        self.send_ipv4(dst_ip_addr, src_ip_addr, Layers::Icmpv4(icmpv4), None)
    }
pub fn send_icmpv4_destination_port_unreachable ( & mut self , dst_ip_addr : Ipv4Addr , src_ip_addr : Ipv4Addr , payload : & [ u8 ] , ) -> io :: Result < ( ) > { // ICMPv4 let icmpv4 = Icmpv4 :: new_destination_port_unreachable ( payload ) ; self . send_ipv4 ( dst_ip_addr , src_ip_addr , Layers :: Icmpv4 ( icmpv4 ) , None ) }
Sends an ICMPv4 destination port unreachable packet.
Sends an ICMPv4 destination port unreachable packet .
&mut self
dst_ip_addr
Ipv4Addr
src_ip_addr
Ipv4Addr
payload
&[u8]
&mut self
dst_ip_addr
Ipv4Addr
src_ip_addr
Ipv4Addr
payload
&[u8]