def decode(self): nla.decode(self) self['keys'] = [] nkeys = self['nkeys'] while nkeys: key = self.u32_key(self.buf) key.decode() self['keys'].append(key) nkeys -= 1
def decode(self): nla.decode(self) parms = self.parent.get_attr('TCA_TBF_PARMS') or \ self.parent.get_attr('TCA_HTB_PARMS') or \ self.parent.get_attr('TCA_POLICE_TBF') if parms is not None: rtab = struct.unpack('I' * (len(self['value']) / 4), self['value']) self.value = rtab setattr(parms, self.__class__.__name__, rtab)
def decode(self): nla.decode(self) self.value = state_by_code[self["value"]]
def decode(self): nla.decode(self) self['ac_comm'] = self['ac_comm'][:self['ac_comm'].find('\0')]
def decode(self): nla.decode(self) self.value = state_by_code[self['value']]