def METHOD_NAME(self):
    try:
        # Protocol compression is *not* recommended (RFC2516), but we do it anyway
        if self.p > 0xff:
            return struct.pack('>H', self.p)
        return dpkt.Packet.METHOD_NAME(self)
    except struct.error as e:
        raise dpkt.PackError(str(e))