]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libcurl-docs: CURLINFO_LOCAL_* work for QUIC as well as TCP
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Sep 2024 14:27:53 +0000 (16:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 11 Sep 2024 06:16:28 +0000 (08:16 +0200)
Also, CURLOPT_TCP_FASTOPEN is for TCP only.

Closes #14852

docs/libcurl/opts/CURLINFO_LOCAL_IP.md
docs/libcurl/opts/CURLINFO_LOCAL_PORT.md
docs/libcurl/opts/CURLOPT_TCP_FASTOPEN.md
scripts/cd2nroff

index ace1b7189cce5c3d6faf78d5c285d412bb306075..f8470b048197b9c331ec9dc91b7aa64f64d111a5 100644 (file)
@@ -10,7 +10,8 @@ See-also:
   - curl_easy_getinfo (3)
   - curl_easy_setopt (3)
 Protocol:
-  - All
+  - TCP
+  - QUIC
 Added-in: 7.21.0
 ---
 
@@ -30,13 +31,13 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_IP, char **ip);
 
 Pass a pointer to a char pointer to receive the pointer to a null-terminated
 string holding the IP address of the local end of most recent connection done
-with this **curl** handle. This string may be IPv6 when that is
-enabled. Note that you get a pointer to a memory area that is reused at next
-request so you need to copy the string if you want to keep the information.
+with this **curl** handle. This string may be IPv6 when that is enabled. Note
+that you get a pointer to a memory area that is reused at next request so you
+need to copy the string if you want to keep the information.
 
-The **ip** pointer is NULL or points to private memory. You MUST NOT free -
-it gets freed when you call curl_easy_cleanup(3) on the corresponding
-CURL handle.
+The **ip** pointer is NULL or points to private memory. You MUST NOT free - it
+gets freed when you call curl_easy_cleanup(3) on the corresponding CURL
+handle.
 
 # %PROTOCOLS%
 
index ff4bcbab3fb7d5d3ef67f5ba38ed93875c287984..a73496be3a211cf6e3f054b54b2968d9146c51d8 100644 (file)
@@ -6,6 +6,7 @@ Section: 3
 Source: libcurl
 Protocol:
   - TCP
+  - QUIC
 See-also:
   - CURLINFO_LOCAL_IP (3)
   - CURLINFO_PRIMARY_PORT (3)
@@ -31,6 +32,9 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_PORT, long *portp);
 Pass a pointer to a long to receive the local port number of the most recent
 connection done with this **curl** handle.
 
+If the connection was done using QUIC, the port number is a UDP port number,
+otherwise it is a TCP port number.
+
 # %PROTOCOLS%
 
 # EXAMPLE
index 8665c39d208dd5e6ef71e58a90e488c57f2eda2e..1f8f5d4a59ed4ddc089aece42ccaf974ffffa3e8 100644 (file)
@@ -7,7 +7,7 @@ Source: libcurl
 See-also:
   - CURLOPT_SSL_FALSESTART (3)
 Protocol:
-  - All
+  - TCP
 Added-in: 7.49.0
 ---
 
index d5ebecd75eb97ea6368ac6066b6f855228cd0834..4c9050098682dc9263e180016d6149bf4b2687ea 100755 (executable)
@@ -178,6 +178,7 @@ my %knownprotos = (
     'WSS' => 1,
     'TLS' => 1,
     'TCP' => 1,
+    'QUIC' => 1,
     'All' => 1
     );