def _write_packet(self, packet): PcapWriter._write_packet(self, packet) self.packet_idx += 1 if self.packet_idx % 10 == 0: self.update_operation()
def _write_packet(self, packet): PcapWriter._write_packet(self, packet) self.packet_idx += 1 if self.packet_idx % 10 == 0: self.update_operation()
def __init__(self, operation, plen, filename, *args, **kargs): self.operation = operation self.packet_len = plen self.packet_idx = 0 PcapWriter.__init__(self, filename, *args, **kargs)
def __init__(self, operation, plen, filename, *args, **kargs): self.operation = operation self.packet_len = plen self.packet_idx = 0 PcapWriter.__init__(self, filename, *args, **kargs)