Lines Matching refs:answer
54 // Perform a DNS query. Returned DNS response is placed in the answer buffer.
55 // A preliminary check of the answer is performed and success is returned only
56 // if no error is indicated in the answer and the answer count is nonzero.
59 _mdns_query(int call, const char *name, int class, int type, u_char *answer, int anslen)
81 memcpy(answer, p->dns_packet, MIN(res, anslen));
90 HEADER *hp = (HEADER *)answer;
121 res_query(const char *name, int class, int type, u_char *answer, int anslen)
123 return _mdns_query(SI_CALL_DNS_QUERY, name, class, type, answer, anslen);
127 res_search(const char *name, int class, int type, u_char *answer, int anslen)
129 return _mdns_query(SI_CALL_DNS_SEARCH, name, class, type, answer, anslen);