Пример #1
0
    def _write_packet(self, packet):
        PcapWriter._write_packet(self, packet)

        self.packet_idx += 1

        if self.packet_idx % 10 == 0:
            self.update_operation()
Пример #2
0
    def _write_packet(self, packet):
        PcapWriter._write_packet(self, packet)

        self.packet_idx += 1

        if self.packet_idx % 10 == 0:
            self.update_operation()
Пример #3
0
    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)
Пример #4
0
    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)