Package dpkt :: Module cdp :: Class CDP
[hide private]
[frames] | no frames]

Class CDP

source code

 object --+    
          |    
dpkt.Packet --+
              |
             CDP

Nested Classes [hide private]
  Address
  TLV

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__len__(self) source code
 
__str__(self)
str(x)
source code

Inherited from dpkt.Packet: __getitem__, __init__, __repr__, pack, pack_hdr

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('version', 'B', 2), ('ttl', 'B', 180), ('sum', 'H'...
  __hdr_defaults__ = {'sum': 0, 'ttl': 180, 'version': 2}
  __hdr_fields__ = ['version', 'ttl', 'sum']
  __hdr_fmt__ = '>BBH'
  __hdr_len__ = 4
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

unpack(self, buf)

source code 
Unpack packet header fields from buf, and set self.data.

Overrides: dpkt.Packet.unpack
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: dpkt.Packet.__len__

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

__hdr__

Value:
(('version', 'B', 2), ('ttl', 'B', 180), ('sum', 'H', 0))