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

Class BGP

source code

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

Border Gateway Protocol.

BGP is an inter-AS routing protocol.
See more about the BGP on     https://en.wikipedia.org/wiki/Border_Gateway_Protocol

Attributes:
    __hdr__: Header fields of BGP.
    #TODO

Nested Classes [hide private]
  Open
  Update
  Notification
  Keepalive
  RouteRefresh
Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code

Inherited from dpkt.Packet: __bytes__, __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', '\xff\xff\xff\xff\xff\xff\xff\xff...
  __hdr_defaults__ = {'len': 0, 'marker': '\xff\xff\xff\xff\xff\...
  __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',
  '\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'),
 ('len', 'H', 0),
 ('type', 'B', 1))

__hdr_defaults__

Value:
{'len': 0,
 'marker': '\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x\
ff\xff',
 'type': 1}