Home | Trees | Indices | Help |
|
---|
|
1 # $Id: ah.py 290 2006-01-22 02:43:28Z dugsong $ 2 3 """Authentication Header.""" 4 5 import dpkt 68 __hdr__ = ( 9 ('nxt', 'B', 0), 10 ('len', 'B', 0), # payload length 11 ('rsvd', 'H', 0), 12 ('spi', 'I', 0), 13 ('seq', 'I', 0) 14 ) 15 auth = ''3117 dpkt.Packet.unpack(self, buf) 18 self.auth = self.data[:self.plen] 19 buf = self.data[self.plen:] 20 try: 21 self.data = ip.IP.get_proto(self.nxt)(buf) 22 setattr(self, self.data.__class__.__name__.lower(), self.data) 23 except (KeyError, dpkt.UnpackError): 24 self.data = buf25 28
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Sep 23 00:54:38 2009 | http://epydoc.sourceforge.net |