Lines Matching refs:NameInfoResponse
145 typedef struct NameInfoResponse { struct
151 } NameInfoResponse; argument
158 NameInfoResponse nameinfo_response;
292 NameInfoResponse resp = {}; in send_nameinfo_reply()
302 resp = (NameInfoResponse) { in send_nameinfo_reply()
305 .header.length = sizeof(NameInfoResponse) + hl + sl, in send_nameinfo_reply()
315 iov[0] = IOVEC_MAKE(&resp, sizeof(NameInfoResponse)); in send_nameinfo_reply()
797 const NameInfoResponse *ni_resp = &packet->nameinfo_response; in handle_response()
799 assert_return(length >= sizeof(NameInfoResponse), -EBADMSG); in handle_response()
804 sizeof(NameInfoResponse) + ni_resp->hostlen + ni_resp->servlen > length) in handle_response()
810 q->host = strndup((const char*) ni_resp + sizeof(NameInfoResponse), in handle_response()
817 … q->serv = strndup((const char*) ni_resp + sizeof(NameInfoResponse) + ni_resp->hostlen, in handle_response()