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

Class Open

source code

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

Nested Classes [hide private]
  Parameter

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__ = (('v', 'B', 4), ('as', 'H', 0), ('holdtime', 'H', 0)...
  __hdr_defaults__ = {'as': 0, 'holdtime': 0, 'identifier': 0, '...
  __hdr_fields__ = ['v', 'as', 'holdtime', 'identifier', 'param_...
  __hdr_fmt__ = '>BHHIB'
  __hdr_len__ = 10
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:
(('v', 'B', 4),
 ('as', 'H', 0),
 ('holdtime', 'H', 0),
 ('identifier', 'I', 0),
 ('param_len', 'B', 0))

__hdr_defaults__

Value:
{'as': 0, 'holdtime': 0, 'identifier': 0, 'param_len': 0, 'v': 4}

__hdr_fields__

Value:
['v', 'as', 'holdtime', 'identifier', 'param_len']