pub fn send_tcp_rst(
        &mut self,
        dst: SocketAddrV4,
        src: SocketAddrV4,
        sequence: u32,
    ) -> io::Result<()> {
        // TCP
        let tcp = Tcp::new_rst(dst.port(), src.port(), sequence, 0, 0, None);

        // Send
        self.send_ipv4(dst.ip().clone(), src.ip().clone(), Layers::Tcp(tcp), None)
    }
/// Sends an TCP RST packet.
Sends an TCP RST packet.
Sends an TCP RST packet .
pub fn send_tcp_rst(
        &mut self,
        dst: SocketAddrV4,
        src: SocketAddrV4,
        sequence: u32,
    ) -> io::Result<()> {
        // TCP
        let tcp = Tcp::new_rst(dst.port(), src.port(), sequence, 0, 0, None);
        // Send
        self.send_ipv4(dst.ip().clone(), src.ip().clone(), Layers::Tcp(tcp), None)
    }
pub fn send_tcp_rst ( & mut self , dst : SocketAddrV4 , src : SocketAddrV4 , sequence : u32 , ) -> io :: Result < ( ) > { // TCP let tcp = Tcp :: new_rst ( dst . port ( ) , src . port ( ) , sequence , 0 , 0 , None ) ; // Send self . send_ipv4 ( dst . ip ( ) . clone ( ) , src . ip ( ) . clone ( ) , Layers :: Tcp ( tcp ) , None ) }
Sends an TCP RST packet.
Sends an TCP RST packet .
&mut self
dst
SocketAddrV4
src
SocketAddrV4
sequence
u32
&mut self
dst
SocketAddrV4
src
SocketAddrV4
sequence
u32