def __init__(self, data, refs, verbose=False):
    super(WartsTraceBoxPkt, self).__init__(TRACEBOXTYPE, verbose)
    self.update_ref(refs)
    self.flagdata = data
    self.flag_defines = [
     ('dir', unpack_uint8_t),
     ('time', read_timeval),
     ('len', unpack_uint16_t),
     ('data', self.read_pass),
    ]
    self.flag_bytes = self.read_flags()
    datalen = self.flags['len']
    self.flags['data'] = self.read_tracebox_pkt(data[self.flag_bytes:self.flag_bytes+datalen])
    self.flag_bytes += self.flags['len']