Home | Trees | Indices | Help |
|
---|
|
1 # $Id: ah.py 34 2007-01-28 07:54:20Z 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 = ''3217 dpkt.Packet.unpack(self, buf) 18 self.auth = self.data[:self.len] 19 buf = self.data[self.len:] 20 import ip 21 try: 22 self.data = ip.IP.get_proto(self.nxt)(buf) 23 setattr(self, self.data.__class__.__name__.lower(), self.data) 24 except (KeyError, dpkt.UnpackError): 25 self.data = buf26 29
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Mar 19 07:50:07 2015 | http://epydoc.sourceforge.net |