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

Class Open

source code

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

Nested Classes [hide private]
  Parameter
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__ = (('v', 'B', 4), ('asn', 'H', 0), ('holdtime', 'H', 0...
  __hdr_defaults__ = {'asn': 0, 'holdtime': 0, 'identifier': 0, ...
  __hdr_fields__ = ['v', 'asn', 'holdtime', 'identifier', 'param...
  __hdr_fmt__ = '>BHHIB'
  __hdr_len__ = 10
Properties [hide private]
  asn
  data
  holdtime
  identifier
  param_len
  v

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:
(('v', 'B', 4),
 ('asn', 'H', 0),
 ('holdtime', 'H', 0),
 ('identifier', 'I', 0),
 ('param_len', 'B', 0))

__hdr_defaults__

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

__hdr_fields__

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