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

Source Code for Module dpkt.igmp

 1  # $Id: igmp.py 290 2006-01-22 02:43:28Z dugsong $ 
 2   
 3  """Internet Group Management Protocol.""" 
 4   
 5  import dpkt 
 6   
7 -class IGMP(dpkt.Packet):
8 __hdr__ = ( 9 ('type', 'B', 0), 10 ('maxresp', 'B', 0), 11 ('sum', 'H', 0), 12 ('group', 'I', 0) 13 )
14 - def __str__(self):
15 if not self.sum: 16 self.sum = dpkt.in_cksum(dpkt.Packet.__str__(self)) 17 return dpkt.Packet.__str__(self)
18