Exemplo n.º 1
0
 def __init__(self,
              source_address=1,
              source_port=0,
              destination_address=1,
              destination_port=0,
              ident=0,
              ttl=100,
              protocol="TCP",
              body="",
              length=0,
              syn=False,
              ack=False,
              fin=False,
              sequence=0,
              ack_number=0,
              sent_time=0,
              ack_packet_length=0,
              drop=False):
     Packet.__init__(self,
                     source_address=source_address,
                     source_port=source_port,
                     destination_address=destination_address,
                     destination_port=destination_port,
                     ttl=ttl,
                     ident=ident,
                     protocol=protocol,
                     body=body,
                     length=length)
     self.sequence = sequence
     self.ack_number = ack_number
     self.sent_time = sent_time
     # The size of the packet received
     self.ack_packet_length = ack_packet_length
     # Determine whether or not to drop the packet
     self.drop = drop
Exemplo n.º 2
0
 def __init__(self,
              source_address=1,
              source_port=0,
              destination_address=1,
              destination_port=0,
              ident=0,
              ttl=100,
              protocol="TCP",
              body="",
              length=0,
              syn=False,
              ack=False,
              fin=False,
              sequence=0,
              ack_number=0,
              sent_time=0):
     Packet.__init__(self,
                     source_address=source_address,
                     source_port=source_port,
                     destination_address=destination_address,
                     destination_port=destination_port,
                     ttl=ttl,
                     ident=ident,
                     protocol=protocol,
                     body=body,
                     length=length)
     self.sequence = sequence
     self.ack_number = ack_number
     self.sent_time = sent_time
Exemplo n.º 3
0
 def __init__(self,source_address=1,source_port=0,
              destination_address=0,destination_port=0,
              ident=0,ttl=1,protocol="dvrouting",body="",length=0,
              source_hostname="",dvs={}):
     Packet.__init__(self,source_address=source_address,
                     source_port=source_port,
                     destination_address=destination_address,
                     destination_port=destination_port,
                     ttl=ttl,ident=ident,protocol=protocol,
                     body=body,length=length)
     self.source_hostname = source_hostname
     self.dvs = dvs
Exemplo n.º 4
0
 def __init__(self,source_address=1,source_port=0,
              destination_address=1,destination_port=0,
              ident=0,ttl=100,protocol="TCP",body="",length=0,
              syn=False,ack=False,fin=False,sequence=0,
              ack_number=0,sent_time=0):
     Packet.__init__(self,source_address=source_address,
                     source_port=source_port,
                     destination_address=destination_address,
                     destination_port=destination_port,
                     ttl=ttl,ident=ident,protocol=protocol,
                     body=body,length=length)
     self.sequence = sequence
     self.ack_number = ack_number
     self.sent_time = sent_time
Exemplo n.º 5
0
 def __init__(self,source_address=1,source_port=0,
              destination_address=1,destination_port=0,
              ident=0,ttl=100,protocol="TCP",body="",length=0,
              syn=False,ack=False,fin=False,sequence=0,
              ack_number=0,sent_time=0,ack_packet_length=0,
              drop=False):
     Packet.__init__(self,source_address=source_address,
                     source_port=source_port,
                     destination_address=destination_address,
                     destination_port=destination_port,
                     ttl=ttl,ident=ident,protocol=protocol,
                     body=body,length=length)
     self.sequence = sequence
     self.ack_number = ack_number
     self.sent_time = sent_time
     # The size of the packet received
     self.ack_packet_length = ack_packet_length
     # Determine whether or not to drop the packet
     self.drop = drop
Exemplo n.º 6
0
 def __init__(self,
              source_address=1,
              source_port=0,
              destination_address=0,
              destination_port=0,
              ident=0,
              ttl=1,
              protocol="dvrouting",
              body="",
              length=0,
              source_hostname="",
              dvs={}):
     Packet.__init__(self,
                     source_address=source_address,
                     source_port=source_port,
                     destination_address=destination_address,
                     destination_port=destination_port,
                     ttl=ttl,
                     ident=ident,
                     protocol=protocol,
                     body=body,
                     length=length)
     self.source_hostname = source_hostname
     self.dvs = dvs