Package dpkt :: Module bgp :: Class BGP
[hide private]
[frames] | no frames]

Class BGP

source code

 object --+    
          |    
dpkt.Packet --+
              |
             BGP

Nested Classes [hide private]
  Open
  Update
  Notification
  Keepalive
  RouteRefresh

Inherited from dpkt.Packet: __metaclass__

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

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

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

Class Variables [hide private]
  __hdr__ = (('marker', '16s', '\x01\x01\x01\x01\x01\x01\x01\x01...
  __hdr_defaults__ = {'len': 0, 'marker': '\x01\x01\x01\x01\x01\...
  __hdr_fields__ = ['marker', 'len', 'type']
  __hdr_fmt__ = '>16sHB'
  __hdr_len__ = 19
Properties [hide private]
  data
  len
  marker
  type

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)

Class Variable Details [hide private]

__hdr__

Value:
(('marker',
  '16s',
  '\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01'),
 ('len', 'H', 0),
 ('type', 'B', 1))

__hdr_defaults__

Value:
{'len': 0,
 'marker': '\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x\
01\x01',
 'type': 1}