def __init__(self, data=0):
    NBResourceRecord.__init__(self, data)
    self.addr_entries = []
    if data:
        self._data = self.get_rdata()
        (_qn_length, qn_name, qn_scope) = decode_name(data)
        self._netbios_name = (string.rstrip(qn_name[:(- 1)]) + qn_scope)
        self._name_type = ord(qn_name[(- 1)])
        self._nb_flags = unpack('!H', self._data[:2])
        offset = 2
        while (offset < len(self._data)):
            self.addr_entries.append(('%d.%d.%d.%d' % unpack('4B', self._data[offset:(offset + 4)])))
            offset += 4
def __init__(self, data=0):
    NBResourceRecord.__init__(self, data)
    self.addr_entries = []
    if data:
        self._data = self.get_rdata()
        (_qn_length, qn_name, qn_scope) = decode_name(data)
        self._netbios_name = (string.rstrip(qn_name[:(- 1)]) + qn_scope)
        self._name_type = ord(qn_name[(- 1)])
        self._nb_flags = unpack('!H', self._data[:2])
        offset = 2
        while (offset < len(self._data)):
            self.addr_entries.append(('%d.%d.%d.%d' % unpack('4B', self._data[offset:(offset + 4)])))
            offset += 4