diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-01-26 14:59:01 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-27 09:19:12 +0100 |
commit | e76b058f3c9a314edbc1a214e1eaf6ef21955bd9 (patch) | |
tree | f272b62819f51cff2ddd59a63447ef3805423e5f /lib/urldata.h | |
parent | 1c3def53c71f85bb3ae16cd4c39dbdcc2a6c460f (diff) | |
download | curl-e76b058f3c9a314edbc1a214e1eaf6ef21955bd9.tar.gz |
urldata: store ip version in a single byte
Closes #6534
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index d7bc3d785..0d8703a4b 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -976,6 +976,7 @@ struct connectdata { these are updated with data which comes directly from the socket. */ char primary_ip[MAX_IPADR_LEN]; + unsigned char ip_version; /* copied from the Curl_easy at creation time */ char *user; /* user name string, allocated */ char *passwd; /* password string, allocated */ @@ -1027,8 +1028,6 @@ struct connectdata { const struct Curl_handler *handler; /* Connection's protocol handler */ const struct Curl_handler *given; /* The protocol first given */ - long ip_version; /* copied from the Curl_easy at creation time */ - /* Protocols can use a custom keepalive mechanism to keep connections alive. This allows those protocols to track the last time the keepalive mechanism was used on this connection. */ @@ -1726,8 +1725,8 @@ struct UserDefined { keep it >= CURL_MAX_WRITE_SIZE */ void *private_data; /* application-private data */ struct curl_slist *http200aliases; /* linked list of aliases for http200 */ - long ipver; /* the CURL_IPRESOLVE_* defines in the public header file - 0 - whatever, 1 - v2, 2 - v6 */ + unsigned char ipver; /* the CURL_IPRESOLVE_* defines in the public header + file 0 - whatever, 1 - v2, 2 - v6 */ curl_off_t max_filesize; /* Maximum file size to download */ #ifndef CURL_DISABLE_FTP curl_ftpfile ftp_filemethod; /* how to get to a file when FTP is used */ |