'Updates information of this entry based on encountering a packet.
Updates both the cumulative given byte counts of packets encountered and
the expiration timer.'

def touch_packet(self, byte_count, now=None):

    if (now is None):
        now = time.time()
    self.byte_count += byte_count
    self.packet_count += 1
    self.last_touched = now
