コード例 #1
0
ファイル: tcppacket.py プロジェクト: kbpontius/CS460-Lab1
 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):
     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
コード例 #2
0
ファイル: tcppacket.py プロジェクト: Steve525/bene
 def __init__(self,source_address=1,source_port=0,
              destination_address=1,destination_port=0,
              ident=0,protocol="TCP",body="",length=0,
              syn=False,ack=False,fin=False,sequence=0,ack_number=0):
     Packet.__init__(self,source_address,source_port,destination_address,
                     destination_port,ident,protocol,body,length)
     self.sequence = sequence
     self.ack_number = ack_number
コード例 #3
0
ファイル: tcppacket.py プロジェクト: StevenC4/bene
 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,drop_packet=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,drop_packet=drop_packet)
     self.sequence = sequence
     self.ack_number = ack_number
コード例 #4
0
 def __init__(self, src_ip, dst_ip, src_port, dst_port, proto_number,
              payload):
     Packet.__init__(self, src_ip, dst_ip, src_port, dst_port, proto_number)
     self.payload = payload