def METHOD_NAME(self, buf, off):
    if self.type == NS_A:
        self.ip = self.rdata
    elif self.type == NS_NBSTAT:
        num = ord(self.rdata[0])
        off = 1
        l = []
        for i in range(num):
            name = self.rdata[off:off + 15].split(None, 1)[0].split('\x00', 1)[0]
            service = ord(self.rdata[off + 15])
            off += 16
            flags = struct.unpack('>H', self.rdata[off:off + 2])[0]
            off += 2
            l.append((name, service, flags))
        self.nodenames = l
        # XXX - skip stats