Пример #1
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()
Пример #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, buffer = None):
     Header.__init__(self, self.HEADER_SIZE)
     if (buffer):
         self.load_header(buffer)
Пример #4
0
 def contains(self, aHeader):
     Header.contains(self, aHeader)
     if isinstance(aHeader, IP6_Extension_Header):
         self.set_next_header(aHeader.get_header_type())
Пример #5
0
 def __init__(self, aBuffer=None):
     Header.__init__(self, 8)
     if aBuffer:
         self.load_header(aBuffer)
         self._elements = self._getElements(aBuffer)
Пример #6
0
 def __init__(self, aBuffer=None):
     Header.__init__(self, 8)
     if aBuffer:
         self._length = CDPElement.Get_length(aBuffer)
         self.load_header(aBuffer[: self._length])
Пример #7
0
 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 __init__(self, buffer=None):
     Header.__init__(self, IP6.HEADER_SIZE)
     self.set_protocol_version(IP6.IP_PROTOCOL_VERSION)
     if (buffer):
         self.load_header(buffer)
Пример #9
0
 def __init__(self, buffer = None):
     Header.__init__(self, IP6.HEADER_SIZE)
     self.set_protocol_version(IP6.IP_PROTOCOL_VERSION)
     if (buffer):
         self.load_header(buffer)
Пример #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._length = CDPElement.Get_length(aBuffer)
         self.load_header( aBuffer[:self._length] )
Пример #12
0
 def __init__(self, buffer=None):
     Header.__init__(self, self.HEADER_SIZE)
     if (buffer):
         self.load_header(buffer)