def pack(self):
    packed = []
    packed.append(struct.pack('!H', self.type))
    packed.append(struct.pack('!H', 0))
    packed.append(('\x00' * 4))
    packed.append(loxi.generic_util.pack_list(self.actions))
    length = sum([len(x) for x in packed])
    packed[1] = struct.pack('!H', length)
    return ''.join(packed)
def pack(self):
    packed = []
    packed.append(struct.pack('!H', self.type))
    packed.append(struct.pack('!H', 0))
    packed.append(('\x00' * 4))
    packed.append(loxi.generic_util.pack_list(self.actions))
    length = sum([len(x) for x in packed])
    packed[1] = struct.pack('!H', length)
    return .join(packed)