aptdetector/network/parser/parse_pcap.py
def append_packet(self, packet):
        """packet appender

        if the packet is after last ack sequence then
        it's a new packet so add it to buffer , and we
        will deal with it later

        Args:
            packet (TcpPack): packet that need to be appended
        """
        if packet.seq >= self.last_ack_seq and packet.body:
            self.receive_buf.append(packet)
packet appender

        if the packet is after last ack sequence then
        it's a new packet so add it to buffer , and we
        will deal with it later

        Args:
            packet (TcpPack): packet that need to be appended
        
packet appender
if the packet is after last ack sequence then
it's a new packet so add it to buffer , and we
will deal with it later
packet appender if the packet is after last ack sequence then it ' s a new packet so add it to buffer and we will deal with it later
def append_packet(self, packet):
        if packet.seq >= self.last_ack_seq and packet.body:
            self.receive_buf.append(packet)
def append_packet ( self , packet ) : if packet . seq >= self . last_ack_seq and packet . body : self . receive_buf . append ( packet )
packet appender
if the packet is after last ack sequence then
it's a new packet so add it to buffer , and we
will deal with it later
packet appender if the packet is after last ack sequence then it ' s a new packet so add it to buffer and we will deal with it later
"""packet appender

        if the packet is after last ack sequence then
        it's a new packet so add it to buffer , and we
        will deal with it later

        Args:
            packet (TcpPack): packet that need to be appended
        """
self
packet
packet that need to be appended
packet that need to be appended