Lines Matching refs:ca
531 struct Curl_addrinfo *ca; in get_localhost6() local
537 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1); in get_localhost6()
538 if(!ca) in get_localhost6()
549 ca->ai_flags = 0; in get_localhost6()
550 ca->ai_family = AF_INET6; in get_localhost6()
551 ca->ai_socktype = SOCK_STREAM; in get_localhost6()
552 ca->ai_protocol = IPPROTO_TCP; in get_localhost6()
553 ca->ai_addrlen = (curl_socklen_t)ss_size; in get_localhost6()
554 ca->ai_next = NULL; in get_localhost6()
555 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in get_localhost6()
556 memcpy(ca->ai_addr, &sa6, ss_size); in get_localhost6()
557 ca->ai_canonname = (char *)ca->ai_addr + ss_size; in get_localhost6()
558 strcpy(ca->ai_canonname, name); in get_localhost6()
559 return ca; in get_localhost6()
568 struct Curl_addrinfo *ca; in get_localhost() local
584 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1); in get_localhost()
585 if(!ca) in get_localhost()
587 ca->ai_flags = 0; in get_localhost()
588 ca->ai_family = AF_INET; in get_localhost()
589 ca->ai_socktype = SOCK_STREAM; in get_localhost()
590 ca->ai_protocol = IPPROTO_TCP; in get_localhost()
591 ca->ai_addrlen = (curl_socklen_t)ss_size; in get_localhost()
592 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in get_localhost()
593 memcpy(ca->ai_addr, &sa, ss_size); in get_localhost()
594 ca->ai_canonname = (char *)ca->ai_addr + ss_size; in get_localhost()
595 strcpy(ca->ai_canonname, name); in get_localhost()
599 return ca; in get_localhost()
600 ca6->ai_next = ca; in get_localhost()