Package dpkt :: Module stp :: Class STP
[hide private]
[frames] | no frames]

Class STP

source code

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

Spanning Tree Protocol.

TODO: Longer class information....

Attributes:
    __hdr__: Header fields of STP.
    TODO.

Instance Methods [hide private]

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

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

Class Variables [hide private]
  __hdr__ = (('proto_id', 'H', 0), ('v', 'B', 0), ('type', 'B', ...
  __hdr_defaults__ = {'_age': 0, '_fd': 0, '_hello': 0, '_max_ag...
  __hdr_fields__ = ['proto_id', 'v', 'type', 'flags', 'root_id',...
  __hdr_fmt__ = '>HBBB8sI8sHHHHH'
  __hdr_len__ = 35
Properties [hide private]
  age
  max_age
  hello
  fd
  _age
  _fd
  _hello
  _max_age
  bridge_id
  data
  flags
  port_id
  proto_id
  root_id
  root_path
  type
  v

Inherited from object: __class__

Class Variable Details [hide private]

__hdr__

Value:
(('proto_id', 'H', 0),
 ('v', 'B', 0),
 ('type', 'B', 0),
 ('flags', 'B', 0),
 ('root_id', '8s', ''),
 ('root_path', 'I', 0),
 ('bridge_id', '8s', ''),
 ('port_id', 'H', 0),
...

__hdr_defaults__

Value:
{'_age': 0,
 '_fd': 0,
 '_hello': 0,
 '_max_age': 0,
 'bridge_id': '',
 'flags': 0,
 'port_id': 0,
 'proto_id': 0,
...

__hdr_fields__

Value:
['proto_id',
 'v',
 'type',
 'flags',
 'root_id',
 'root_path',
 'bridge_id',
 'port_id',
...

Property Details [hide private]

age

Get Method:
unreachable.age(self)
Set Method:
unreachable.age(self, age)

max_age

Get Method:
unreachable.max_age(self)
Set Method:
unreachable.max_age(self, max_age)

hello

Get Method:
unreachable.hello(self)
Set Method:
unreachable.hello(self, hello)

fd

Get Method:
unreachable.fd(self)
Set Method:
unreachable.fd(self, fd)