Lines Matching refs:addrinfo
90 struct addrinfo *addrinfo; member
191 static void *serialize_addrinfo(void *p, const struct addrinfo *ai, size_t *length, size_t maxlengt… in serialize_addrinfo()
228 struct addrinfo *ai, in send_addrinfo_reply()
255 struct addrinfo *k; in send_addrinfo_reply()
345 struct addrinfo hints, *result = NULL; in handle_request()
352 hints = (struct addrinfo) { in handle_request()
679 static int unserialize_addrinfo(const void **p, size_t *length, struct addrinfo **ret_ai) { in unserialize_addrinfo()
681 struct addrinfo *ai; in unserialize_addrinfo()
698 ai = new(struct addrinfo, 1); in unserialize_addrinfo()
702 *ai = (struct addrinfo) { in unserialize_addrinfo()
764 struct addrinfo *prev = NULL; in handle_response()
775 struct addrinfo *ai = NULL; in handle_response()
780 freeaddrinfo(q->addrinfo); in handle_response()
781 q->addrinfo = NULL; in handle_response()
788 q->addrinfo = ai; in handle_response()
926 const struct addrinfo *hints, in resolve_getaddrinfo_with_destroy_callback()
996 const struct addrinfo *hints, in sd_resolve_getaddrinfo()
1011 return q->getaddrinfo_handler(q, q->ret, q->addrinfo, q->userdata); in getaddrinfo_done()
1105 static void resolve_freeaddrinfo(struct addrinfo *ai) { in resolve_freeaddrinfo()
1107 struct addrinfo *next = ai->ai_next; in resolve_freeaddrinfo()
1152 resolve_freeaddrinfo(q->addrinfo); in resolve_query_free()