diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-10-11 21:07:18 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-10-11 21:17:24 +0300 |
commit | 1df197e6035ea9826bfedee7d48812e318ba9c7a (patch) | |
tree | 76b8e9de41820755adf209854d06a84a8b5a1988 /contrib/libs/curl/lib/cf-socket.h | |
parent | f9c007ea1b59b960201def74990810b26ecdfd48 (diff) | |
download | ydb-1df197e6035ea9826bfedee7d48812e318ba9c7a.tar.gz |
Revert "Update contrib/libs/curl to 8.10.1" to fix
Revert "Update contrib/libs/curl to 8.10.1"
This reverts commit 428ef806a15515cdaa325530aa8cc6903fac5fb6, reversing
changes made to 40e46e6394df409d1545a3771c8a47a86ed55eac.
Revert "Fix formatting after rXXXXXX"
This reverts commit a73689311a92e195d14136c5a0049ef1e40b1f3e, reversing
changes made to 17980b8756d1f74d3dacddc7ca4945c30f35611c.
commit_hash:5c5194831e5455b61fbee61619066396626beab1
Diffstat (limited to 'contrib/libs/curl/lib/cf-socket.h')
-rw-r--r-- | contrib/libs/curl/lib/cf-socket.h | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/contrib/libs/curl/lib/cf-socket.h b/contrib/libs/curl/lib/cf-socket.h index 35225f153c..1d40df737f 100644 --- a/contrib/libs/curl/lib/cf-socket.h +++ b/contrib/libs/curl/lib/cf-socket.h @@ -33,7 +33,23 @@ struct Curl_cfilter; struct Curl_easy; struct connectdata; struct Curl_sockaddr_ex; -struct ip_quadruple; + +#ifndef SIZEOF_CURL_SOCKET_T +/* configure and cmake check and set the define */ +# ifdef _WIN64 +# define SIZEOF_CURL_SOCKET_T 8 +# else +/* default guess */ +# define SIZEOF_CURL_SOCKET_T 4 +# endif +#endif + +#if SIZEOF_CURL_SOCKET_T < 8 +# define CURL_FORMAT_SOCKET_T "d" +#else +# define CURL_FORMAT_SOCKET_T "qd" +#endif + /* * The Curl_sockaddr_ex structure is basically libcurl's external API @@ -54,11 +70,6 @@ struct Curl_sockaddr_ex { }; #define sa_addr _sa_ex_u.addr -/* - * Parse interface option, and return the interface name and the host part. -*/ -CURLcode Curl_parse_interface(const char *input, - char **dev, char **iface, char **host); /* * Create a socket based on info from 'conn' and 'ai'. @@ -86,9 +97,9 @@ int Curl_socket_close(struct Curl_easy *data, struct connectdata *conn, Buffer Size */ -void Curl_sndbuf_init(curl_socket_t sockfd); +void Curl_sndbufset(curl_socket_t sockfd); #else -#define Curl_sndbuf_init(y) Curl_nop_stmt +#define Curl_sndbufset(y) Curl_nop_stmt #endif /** @@ -159,14 +170,18 @@ CURLcode Curl_conn_tcp_accepted_set(struct Curl_easy *data, * The filter owns all returned values. * @param psock pointer to hold socket descriptor or NULL * @param paddr pointer to hold addr reference or NULL - * @param pip pointer to get IP quadruple or NULL + * @param pr_ip_str pointer to hold remote addr as string or NULL + * @param pr_port pointer to hold remote port number or NULL + * @param pl_ip_str pointer to hold local addr as string or NULL + * @param pl_port pointer to hold local port number or NULL * Returns error if the filter is of invalid type. */ CURLcode Curl_cf_socket_peek(struct Curl_cfilter *cf, struct Curl_easy *data, curl_socket_t *psock, const struct Curl_sockaddr_ex **paddr, - struct ip_quadruple *pip); + const char **pr_ip_str, int *pr_port, + const char **pl_ip_str, int *pl_port); extern struct Curl_cftype Curl_cft_tcp; extern struct Curl_cftype Curl_cft_udp; |