pub fn send_tcp_delay_ack_0(&mut self, dst: SocketAddrV4, src: SocketAddrV4) -> io::Result<()> {
        if ENABLE_DELAYED_ACK {
            let state = self
                .get_state_mut(dst, src)
                .ok_or(io::Error::from(io::ErrorKind::NotFound))?;

            if state.delayed_ack() {
                self.send_tcp_ack_0(dst, src)?;
            } else {
                state.set_delayed_ack();
            }
        } else {
            self.send_tcp_ack_0(dst, src)?;
        }

        Ok(())
    }
/// Sends an TCP delayed ACK packet without payload.
Sends an TCP delayed ACK packet without payload.
Sends an TCP delayed ACK packet without payload .
pub fn send_tcp_delay_ack_0(&mut self, dst: SocketAddrV4, src: SocketAddrV4) -> io::Result<()> {
        if ENABLE_DELAYED_ACK {
            let state = self
                .get_state_mut(dst, src)
                .ok_or(io::Error::from(io::ErrorKind::NotFound))?;
            if state.delayed_ack() {
                self.send_tcp_ack_0(dst, src)?;
            } else {
                state.set_delayed_ack();
            }
        } else {
            self.send_tcp_ack_0(dst, src)?;
        }
        Ok(())
    }
pub fn send_tcp_delay_ack_0 ( & mut self , dst : SocketAddrV4 , src : SocketAddrV4 ) -> io :: Result < ( ) > { if ENABLE_DELAYED_ACK { let state = self . get_state_mut ( dst , src ) . ok_or ( io :: Error :: from ( io :: ErrorKind :: NotFound ) ) ? ; if state . delayed_ack ( ) { self . send_tcp_ack_0 ( dst , src ) ? ; } else { state . set_delayed_ack ( ) ; } } else { self . send_tcp_ack_0 ( dst , src ) ? ; } Ok ( ( ) ) }
Sends an TCP delayed ACK packet without payload.
Sends an TCP delayed ACK packet without payload .
&mut self
dst
SocketAddrV4
src
SocketAddrV4
&mut self
dst
SocketAddrV4
src
SocketAddrV4