Home
last modified time | relevance | path

Searched refs:ai_new (Results 1 – 2 of 2) sorted by relevance

/external/libevent/
Devutil.c1330 struct evutil_addrinfo *ai_new; in apply_socktype_protocol_hack() local
1335 ai_new = mm_malloc(sizeof(*ai_new)); in apply_socktype_protocol_hack()
1336 if (!ai_new) in apply_socktype_protocol_hack()
1338 memcpy(ai_new, ai, sizeof(*ai_new)); in apply_socktype_protocol_hack()
1341 ai_new->ai_socktype = SOCK_DGRAM; in apply_socktype_protocol_hack()
1342 ai_new->ai_protocol = IPPROTO_UDP; in apply_socktype_protocol_hack()
1344 ai_new->ai_next = ai->ai_next; in apply_socktype_protocol_hack()
1345 ai->ai_next = ai_new; in apply_socktype_protocol_hack()
Devdns.c4600 struct evutil_addrinfo *ai_new; in evdns_getaddrinfo_fromhosts() local
4605 ai_new = evutil_new_addrinfo_(&e->addr.sa, e->addrlen, hints); in evdns_getaddrinfo_fromhosts()
4606 if (!ai_new) { in evdns_getaddrinfo_fromhosts()
4610 sockaddr_setport(ai_new->ai_addr, port); in evdns_getaddrinfo_fromhosts()
4611 ai = evutil_addrinfo_append_(ai, ai_new); in evdns_getaddrinfo_fromhosts()