def unpack(self, buf):
        dpkt.Packet.unpack(self, buf)
        self.auth = self.data[:self.len]
        buf = self.data[self.len:]
        import ip
        try:
            self.data = ip.IP.get_proto(self.nxt)(buf)
            setattr(self, self.data.__class__.__name__.lower(), self.data)
        except (__HOLE__, dpkt.UnpackError):
            self.data = buf
dataset/ETHPy150Open dragondjf/QMarkdowner/dpkt/ah.py/AH.unpack