mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:13:38 +03:00
more transparant support for IPv6 name resolving
This commit is contained in:
parent
888d39e083
commit
48dc74aecc
5 changed files with 51 additions and 53 deletions
|
|
@ -26,6 +26,7 @@
|
|||
/* This file is for lib internal stuff */
|
||||
|
||||
#include "setup.h"
|
||||
#include "hostip.h"
|
||||
|
||||
#define PORT_FTP 21
|
||||
#define PORT_TELNET 23
|
||||
|
|
@ -223,12 +224,12 @@ struct connectdata {
|
|||
#define PROT_FILE (1<<8)
|
||||
#define PROT_FTPS (1<<9)
|
||||
|
||||
Curl_addrinfo *hp; /* IP-protocol independent host info pointer list */
|
||||
char *hostent_buf; /* pointer to allocated memory for name info */
|
||||
|
||||
#ifdef ENABLE_IPV6
|
||||
struct addrinfo *hp; /* host info pointer list */
|
||||
struct addrinfo *ai; /* the particular host we use */
|
||||
#else
|
||||
char *hostent_buf; /* pointer to allocated memory for name info */
|
||||
struct hostent *hp;
|
||||
struct sockaddr_in serv_addr;
|
||||
#endif
|
||||
char protostr[64]; /* store the protocol string in this buffer */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue