Lines Matching refs:addr
262 struct sockaddr_in *addr; in Curl_he2ai() local
318 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai()
320 memcpy(&addr->sin_addr, curr, sizeof(struct in_addr)); in Curl_he2ai()
322 addr->sin_family = (short)(he->h_addrtype); in Curl_he2ai()
324 addr->sin_family = (CURL_SA_FAMILY_T)(he->h_addrtype); in Curl_he2ai()
326 addr->sin_port = htons((unsigned short)port); in Curl_he2ai()
371 struct sockaddr_in *addr; in Curl_ip2addr() local
405 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_ip2addr()
407 memcpy(&addr->sin_addr, inaddr, sizeof(struct in_addr)); in Curl_ip2addr()
409 addr->sin_family = (short)af; in Curl_ip2addr()
411 addr->sin_family = (CURL_SA_FAMILY_T)af; in Curl_ip2addr()
413 addr->sin_port = htons((unsigned short)port); in Curl_ip2addr()
566 struct sockaddr_in *addr; in Curl_addrinfo_set_port() local
573 addr = (void *)ca->ai_addr; /* storage area for this info */ in Curl_addrinfo_set_port()
574 addr->sin_port = htons((unsigned short)port); in Curl_addrinfo_set_port()