def __init__(self, buffer = None):
     Header.__init__(self, self.get_headers_field_size())
     self._option_list = []
     if buffer:
         self.load_header(buffer)
     else:
         self.reset()
예제 #2
0
 def __init__(self, buffer=None):
     Header.__init__(self, self.get_headers_field_size())
     self._option_list = []
     if buffer:
         self.load_header(buffer)
     else:
         self.reset()
예제 #3
0
 def __init__(self, aBuffer=None):
     Header.__init__(self, 12)
     self.set_byte(0, 0)
     self.set_byte(1, 0)
     self.set_word(2,24)
     if(aBuffer):
         self.load_header(aBuffer)
예제 #4
0
파일: ICMP6.py 프로젝트: lxbeyond/impacket
 def __init__(self, buffer = None):
     Header.__init__(self, self.HEADER_SIZE)
     if (buffer):
         self.load_header(buffer)
예제 #5
0
 def contains(self, aHeader):
     Header.contains(self, aHeader)
     if isinstance(aHeader, IP6_Extension_Header):
         self.set_next_header(aHeader.get_header_type())
예제 #6
0
 def __init__(self, buffer = None):
     Header.__init__(self, IP6.HEADER_SIZE)
     self.set_ip_v(IP6.IP_PROTOCOL_VERSION)
     if (buffer):
         self.load_header(buffer)
 def contains(self, aHeader):
     Header.contains(self, aHeader)
     if isinstance(aHeader, IP6_Extension_Header):
         self.set_next_header(aHeader.get_header_type())
예제 #8
0
 def get_packet(self):
     return Header.get_packet(self)
예제 #9
0
 def __init__(self, aBuffer=None):
     Header.__init__(self, 8)
     if aBuffer:
         self._length = CDPElement.Get_length(aBuffer)
         self.load_header(aBuffer[:self._length])
예제 #10
0
 def __init__(self, aBuffer=None):
     Header.__init__(self, 8)
     if aBuffer:
         self.load_header(aBuffer)
         self._elements = self._getElements(aBuffer)
예제 #11
0
 def __init__(self, aBuffer = None):
     Header.__init__(self, 8)
     if aBuffer:
         self.load_header(aBuffer)
         self._elements = self._getElements(aBuffer)
예제 #12
0
 def __init__(self, aBuffer = None):
     Header.__init__(self, 8)
     if aBuffer:
         self._length = CDPElement.Get_length(aBuffer)
         self.load_header( aBuffer[:self._length] )
예제 #13
0
 def __init__(self, buffer = None):
     Header.__init__(self, IP6.HEADER_SIZE)
     self.set_ip_v(IP6.IP_PROTOCOL_VERSION)
     if (buffer):
         self.load_header(buffer)
예제 #14
0
파일: gre.py 프로젝트: atilaromero/msn
 def __init__(self, aBuffer = None):
     Header.__init__(self, 4)
     if(aBuffer):
         self.load_header(aBuffer)
예제 #15
0
 def __init__(self, buffer = None):
     Header.__init__(self, self.HEADER_SIZE)
     if (buffer):
         self.load_header(buffer)