Lines Matching refs:dest
309 void Curl_sock_assign_addr(struct Curl_sockaddr_ex *dest, in Curl_sock_assign_addr() argument
320 dest->family = ai->ai_family; in Curl_sock_assign_addr()
323 dest->socktype = SOCK_STREAM; in Curl_sock_assign_addr()
324 dest->protocol = IPPROTO_TCP; in Curl_sock_assign_addr()
327 dest->socktype = SOCK_STREAM; in Curl_sock_assign_addr()
328 dest->protocol = IPPROTO_IP; in Curl_sock_assign_addr()
331 dest->socktype = SOCK_DGRAM; in Curl_sock_assign_addr()
332 dest->protocol = IPPROTO_UDP; in Curl_sock_assign_addr()
335 dest->addrlen = (unsigned int)ai->ai_addrlen; in Curl_sock_assign_addr()
337 if(dest->addrlen > sizeof(struct Curl_sockaddr_storage)) in Curl_sock_assign_addr()
338 dest->addrlen = sizeof(struct Curl_sockaddr_storage); in Curl_sock_assign_addr()
339 memcpy(&dest->curl_sa_addr, ai->ai_addr, dest->addrlen); in Curl_sock_assign_addr()