pub fn add_tcp_acknowledgement(&mut self, dst: SocketAddrV4, src_port: u16, n: u32) {
        let entry = self
            .tcp_acknowledgement_map
            .entry((src_port, dst))
            .or_insert(0);
        *entry = entry
            .checked_add(n)
            .unwrap_or_else(|| n - (u32::MAX - *entry));
        trace!(
            "add TCP acknowledgement of {} -> {} to {}",
            dst,
            src_port,
            entry
        );
    }
/// Adds acknowledgement to a TCP connection.
Adds acknowledgement to a TCP connection.
Adds acknowledgement to a TCP connection .
pub fn add_tcp_acknowledgement(&mut self, dst: SocketAddrV4, src_port: u16, n: u32) {
        let entry = self
            .tcp_acknowledgement_map
            .entry((src_port, dst))
            .or_insert(0);
        *entry = entry
            .checked_add(n)
            .unwrap_or_else(|| n - (u32::MAX - *entry));
        trace!(
            "add TCP acknowledgement of {} -> {} to {}",
            dst,
            src_port,
            entry
        );
    }
pub fn add_tcp_acknowledgement ( & mut self , dst : SocketAddrV4 , src_port : u16 , n : u32 ) { let entry = self . tcp_acknowledgement_map . entry ( ( src_port , dst ) ) . or_insert ( 0 ) ; * entry = entry . checked_add ( n ) . unwrap_or_else ( | | n - ( u32 :: MAX - * entry ) ) ; trace ! ( " " dst src_port entry ) ; }
Adds acknowledgement to a TCP connection.
Adds acknowledgement to a TCP connection .
&mut self
dst
SocketAddrV4
src_port
u16
n
u32