Lines Matching defs:qdata

164 	struct mdns_querydata *qdata;
173 qdata = (struct mdns_querydata *)context;
174 argp = qdata->argp;
177 qdata->qrydone = B_TRUE;
181 qdata->qrydone = B_FALSE;
183 qdata->qrydone = B_TRUE;
196 if (qdata->buffer == NULL) {
197 if (qdata->withttlbsize > 0) {
198 remlen = qdata->buflen =
199 qdata->withttlbsize;
200 buffer = qdata->buffer =
201 qdata->withttlbuffer;
202 (void) memset(qdata->buffer, 0, remlen);
204 remlen = qdata->buflen =
207 buffer = qdata->buffer =
213 buffer = qdata->buffer = argp->buf.buffer;
218 buffer = qdata->buffer + strlen(qdata->buffer);
219 remlen = qdata->buflen - strlen(qdata->buffer);
233 qdata->status = NSS_NOTFOUND;
234 qdata->argp->erange = 1;
235 qdata->argp->h_errno = HOST_NOT_FOUND;
238 qdata->ttl = ttl;
239 qdata->status = NSS_SUCCESS;
244 qdata->status = NSS_NOTFOUND;
245 qdata->argp->h_errno = HOST_NOT_FOUND;
304 struct mdns_querydata *qdata;
312 qdata = (struct mdns_querydata *)context;
313 argp = qdata->argp;
316 qdata->qrydone = B_TRUE;
320 qdata->qrydone = B_FALSE;
322 qdata->qrydone = B_TRUE;
330 if (qdata->buffer == NULL) {
331 remlen = qdata->buflen = argp->buf.buflen;
333 buffer = qdata->buffer = calloc(1, remlen);
337 buffer = qdata->buffer = argp->buf.buffer;
341 buffer = qdata->buffer + strlen(qdata->buffer);
342 remlen = qdata->buflen - strlen(qdata->buffer);
346 qdata->status = NSS_NOTFOUND;
347 qdata->argp->h_errno = HOST_NOT_FOUND;
356 qdata->paddrbuf, hostname);
359 qdata->paddrbuf, hostname);
361 qdata->status = NSS_NOTFOUND;
362 qdata->argp->erange = 1;
363 qdata->argp->h_errno = HOST_NOT_FOUND;
366 qdata->status = NSS_SUCCESS;
367 qdata->ttl = ttl;
698 struct mdns_querydata qdata;
702 (void) memset(&qdata, 0, sizeof (struct mdns_querydata));
704 qdata.argp = &arg;
710 qdata.withttlbsize = pbuf->data_len - sizeof (nssuint_t);
711 qdata.withttlbuffer = (char *)buffer + pbuf->data_off;
732 (void) memset(qdata.withttlbuffer, 0, qdata.withttlbsize);
738 if (_nss_mdns_querybyname(be, hname, af, &qdata) == NSS_SUCCESS) {
739 blen = strlen(qdata.buffer);
754 *pttl = qdata.ttl;