def __init__(self, data=0):
    NBResourceRecord.__init__(self, data)
    self.num_names = 0
    self.node_names = []
    self.statstics = ''
    self.mac = '00-00-00-00-00-00'
    try:
        if data:
            self._data = self.get_rdata()
            self.num_names = unpack('>B', self._data[:1])[0]
            offset = 1
            for i in range(0, self.num_names):
                name = self._data[offset:(offset + 15)]
                (type, flags) = unpack('>BH', self._data[(offset + 15):(offset + 18)])
                offset += 18
                self.node_names.append(NBNodeEntry(name, type, flags))
            self.set_mac_in_hexa(self.get_unit_id())
    except Exception:
        raise NetBIOSError('Wrong packet format ')
def __init__(self, data=0):
    NBResourceRecord.__init__(self, data)
    self.num_names = 0
    self.node_names = []
    self.statstics = 
    self.mac = '00-00-00-00-00-00'
    try:
        if data:
            self._data = self.get_rdata()
            self.num_names = unpack('>B', self._data[:1])[0]
            offset = 1
            for i in range(0, self.num_names):
                name = self._data[offset:(offset + 15)]
                (type, flags) = unpack('>BH', self._data[(offset + 15):(offset + 18)])
                offset += 18
                self.node_names.append(NBNodeEntry(name, type, flags))
            self.set_mac_in_hexa(self.get_unit_id())
    except Exception:
        raise NetBIOSError('Wrong packet format ')