Lines Matching refs:namelen
128 size_t namelen = ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0; in Curl_getaddrinfo_ex() local
148 ca = malloc(sizeof(struct Curl_addrinfo) + ss_size + namelen); in Curl_getaddrinfo_ex()
169 if(namelen) { in Curl_getaddrinfo_ex()
171 memcpy(ca->ai_canonname, ai->ai_canonname, namelen); in Curl_getaddrinfo_ex()
278 size_t namelen = strlen(he->h_name) + 1; /* include null-terminator */ in Curl_he2ai() local
287 ai = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + namelen); in Curl_he2ai()
296 memcpy(ai->ai_canonname, he->h_name, namelen); in Curl_he2ai()
370 size_t namelen; in Curl_ip2addr() local
378 namelen = strlen(hostname) + 1; in Curl_ip2addr()
390 ai = calloc(1, sizeof(struct Curl_addrinfo) + addrsize + namelen); in Curl_ip2addr()
397 memcpy(ai->ai_canonname, hostname, namelen); in Curl_ip2addr()