Searched refs:ni_resp (Results 1 – 1 of 1) sorted by relevance
797 const NameInfoResponse *ni_resp = &packet->nameinfo_response; in handle_response() local802 if (ni_resp->hostlen > DNS_HOSTNAME_MAX || in handle_response()803 ni_resp->servlen > DNS_HOSTNAME_MAX || in handle_response()804 sizeof(NameInfoResponse) + ni_resp->hostlen + ni_resp->servlen > length) in handle_response()807 query_assign_errno(q, ni_resp->ret, ni_resp->_errno, ni_resp->_h_errno); in handle_response()809 if (ni_resp->hostlen > 0) { in handle_response()810 q->host = strndup((const char*) ni_resp + sizeof(NameInfoResponse), in handle_response()811 ni_resp->hostlen-1); in handle_response()816 if (ni_resp->servlen > 0) { in handle_response()817 … q->serv = strndup((const char*) ni_resp + sizeof(NameInfoResponse) + ni_resp->hostlen, in handle_response()[all …]