Lines Matching refs:hp
366 struct Curl_addrinfo *hp = NULL; in do_SOCKS4() local
372 hp = dns->addr; in do_SOCKS4()
375 while(hp && (hp->ai_family != AF_INET)) in do_SOCKS4()
376 hp = hp->ai_next; in do_SOCKS4()
378 if(hp) { in do_SOCKS4()
381 Curl_printable_address(hp, buf, sizeof(buf)); in do_SOCKS4()
383 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr; in do_SOCKS4()
400 if(!hp) in do_SOCKS4()
838 struct Curl_addrinfo *hp = NULL; in do_SOCKS5() local
840 hp = dns->addr; in do_SOCKS5()
846 while(hp && (hp->ai_family != wanted_family)) in do_SOCKS5()
847 hp = hp->ai_next; in do_SOCKS5()
850 if(!hp) { in do_SOCKS5()
856 Curl_printable_address(hp, dest, sizeof(dest)); in do_SOCKS5()
862 if(hp->ai_family == AF_INET) { in do_SOCKS5()
867 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr; in do_SOCKS5()
876 else if(hp->ai_family == AF_INET6) { in do_SOCKS5()
881 saddr_in6 = (struct sockaddr_in6 *)(void *)hp->ai_addr; in do_SOCKS5()
892 hp = NULL; /* fail! */ in do_SOCKS5()