Lines Matching refs:ca

81   struct Curl_addrinfo *ca;  in Curl_freeaddrinfo()  local
83 for(ca = cahead; ca; ca = canext) { in Curl_freeaddrinfo()
84 canext = ca->ai_next; in Curl_freeaddrinfo()
85 free(ca); in Curl_freeaddrinfo()
115 struct Curl_addrinfo *ca; in Curl_getaddrinfo_ex() local
148 ca = malloc(sizeof(struct Curl_addrinfo) + ss_size + namelen); in Curl_getaddrinfo_ex()
149 if(!ca) { in Curl_getaddrinfo_ex()
157 ca->ai_flags = ai->ai_flags; in Curl_getaddrinfo_ex()
158 ca->ai_family = ai->ai_family; in Curl_getaddrinfo_ex()
159 ca->ai_socktype = ai->ai_socktype; in Curl_getaddrinfo_ex()
160 ca->ai_protocol = ai->ai_protocol; in Curl_getaddrinfo_ex()
161 ca->ai_addrlen = (curl_socklen_t)ss_size; in Curl_getaddrinfo_ex()
162 ca->ai_addr = NULL; in Curl_getaddrinfo_ex()
163 ca->ai_canonname = NULL; in Curl_getaddrinfo_ex()
164 ca->ai_next = NULL; in Curl_getaddrinfo_ex()
166 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in Curl_getaddrinfo_ex()
167 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex()
170 ca->ai_canonname = (void *)((char *)ca->ai_addr + ss_size); in Curl_getaddrinfo_ex()
171 memcpy(ca->ai_canonname, ai->ai_canonname, namelen); in Curl_getaddrinfo_ex()
176 cafirst = ca; in Curl_getaddrinfo_ex()
180 calast->ai_next = ca; in Curl_getaddrinfo_ex()
181 calast = ca; in Curl_getaddrinfo_ex()
565 struct Curl_addrinfo *ca; in Curl_addrinfo_set_port() local
570 for(ca = addrinfo; ca != NULL; ca = ca->ai_next) { in Curl_addrinfo_set_port()
571 switch(ca->ai_family) { in Curl_addrinfo_set_port()
573 addr = (void *)ca->ai_addr; /* storage area for this info */ in Curl_addrinfo_set_port()
579 addr6 = (void *)ca->ai_addr; /* storage area for this info */ in Curl_addrinfo_set_port()