pub fn new_rst(
        src_ip_addr: Ipv4Addr,
        dst_ip_addr: Ipv4Addr,
        src: u16,
        dst: u16,
        sequence: u32,
        acknowledgement: u32,
        window: u16,
    ) -> Tcp {
        let mut tcp = Tcp::new_ack(
            src_ip_addr,
            dst_ip_addr,
            src,
            dst,
            sequence,
            acknowledgement,
            window,
        );
        tcp.layer.flags = TcpFlags::RST;
        tcp
    }
/// Creates a `Tcp` represents a TCP RST.
Creates a `Tcp` represents a TCP RST.
Creates a ` Tcp ` represents a TCP RST .
pub fn new_rst(
        src_ip_addr: Ipv4Addr,
        dst_ip_addr: Ipv4Addr,
        src: u16,
        dst: u16,
        sequence: u32,
        acknowledgement: u32,
        window: u16,
    ) -> Tcp {
        let mut tcp = Tcp::new_ack(
            src_ip_addr,
            dst_ip_addr,
            src,
            dst,
            sequence,
            acknowledgement,
            window,
        );
        tcp.layer.flags = TcpFlags::RST;
        tcp
    }
pub fn new_rst ( src_ip_addr : Ipv4Addr , dst_ip_addr : Ipv4Addr , src : u16 , dst : u16 , sequence : u32 , acknowledgement : u32 , window : u16 , ) -> Tcp { let mut tcp = Tcp :: new_ack ( src_ip_addr , dst_ip_addr , src , dst , sequence , acknowledgement , window , ) ; tcp . layer . flags = TcpFlags :: RST ; tcp }
Creates a `Tcp` represents a TCP RST.
Creates a ` Tcp ` represents a TCP RST .
src_ip_addr
Ipv4Addr
dst_ip_addr
Ipv4Addr
src
u16
dst
u16
sequence
u32
acknowledgement
u32
window
u16