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

Class CDP

source code

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

Cisco Discovery Protocol.

See more about the BGP on     https://en.wikipedia.org/wiki/Cisco_Discovery_Protocol

Attributes:
    __hdr__: Header fields of CDP.
    #TODO

Nested Classes [hide private]
  Address
  TLV
Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__len__(self) source code
 
__bytes__(self) source code

Inherited from dpkt.Packet: __getitem__, __init__, __repr__, __str__, 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]
  data
  sum
  ttl
  version

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__

__bytes__(self)

source code 
Overrides: dpkt.Packet.__bytes__

Class Variable Details [hide private]

__hdr__

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