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

Source Code for Module dpkt.stp

 1  # $Id: stp.py 23 2006-11-08 15:45:33Z dugsong $ 
 2   
 3  """Spanning Tree Protocol.""" 
 4   
 5  import dpkt 
 6   
7 -class STP(dpkt.Packet):
8 __hdr__ = ( 9 ('proto_id', 'H', 0), 10 ('v', 'B', 0), 11 ('type', 'B', 0), 12 ('flags', 'B', 0), 13 ('root_id', '8s', ''), 14 ('root_path', 'I', 0), 15 ('bridge_id', '8s', ''), 16 ('port_id', 'H', 0), 17 ('age', 'H', 0), 18 ('max_age', 'H', 0), 19 ('hello', 'H', 0), 20 ('fd', 'H', 0) 21 )
22