Searched refs:ss_size (Results 1 – 4 of 4) sorted by relevance
/curl/lib/ |
H A D | curl_addrinfo.c | 116 size_t ss_size; in Curl_getaddrinfo_ex() local 132 ss_size = sizeof(struct sockaddr_in); in Curl_getaddrinfo_ex() 135 ss_size = sizeof(struct sockaddr_in6); in Curl_getaddrinfo_ex() 145 if((size_t)ai->ai_addrlen < ss_size) in Curl_getaddrinfo_ex() 161 ca->ai_addrlen = (curl_socklen_t)ss_size; in Curl_getaddrinfo_ex() 167 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex() 277 size_t ss_size; in Curl_he2ai() local 281 ss_size = sizeof(struct sockaddr_in6); in Curl_he2ai() 284 ss_size = sizeof(struct sockaddr_in); in Curl_he2ai() 295 ai->ai_canonname = (char *)ai->ai_addr + ss_size; in Curl_he2ai() [all …]
|
H A D | asyn-ares.c | 672 size_t ss_size; in ares2addr() local 677 ss_size = sizeof(struct sockaddr_in); in ares2addr() 680 ss_size = sizeof(struct sockaddr_in6); in ares2addr() 690 if((size_t)ai->ai_addrlen < ss_size) in ares2addr() 693 ca = malloc(sizeof(struct Curl_addrinfo) + ss_size); in ares2addr() 706 ca->ai_addrlen = (curl_socklen_t)ss_size; in ares2addr() 712 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in ares2addr()
|
H A D | hostip.c | 532 const size_t ss_size = sizeof(struct sockaddr_in6); in get_localhost6() local 537 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1); in get_localhost6() 553 ca->ai_addrlen = (curl_socklen_t)ss_size; 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() 570 const size_t ss_size = sizeof(struct sockaddr_in); in get_localhost() local 584 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1); in get_localhost() 591 ca->ai_addrlen = (curl_socklen_t)ss_size; 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()
|
H A D | doh.c | 916 size_t ss_size; in doh2ai() local 923 ss_size = sizeof(struct sockaddr_in6); in doh2ai() 928 ss_size = sizeof(struct sockaddr_in); in doh2ai() 932 ai = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen); in doh2ai() 938 ai->ai_canonname = (void *)((char *)ai->ai_addr + ss_size); in doh2ai() 955 ai->ai_addrlen = (curl_socklen_t)ss_size; in doh2ai()
|
Completed in 17 milliseconds