aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-07-30 21:55:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-07-30 21:55:26 +0000
commit5aed78e183e843a6935679d3ebdafd0c10b41114 (patch)
tree5f9426759bda1e85565fd5dce82d6a60be8f6892 /lib/urldata.h
parent011e5dd86447ffc8eb2e491020cbe5a3f4cd071b (diff)
- Phil Blundell added the CURLOPT_SCOPE option, as well as adjusted the URL
parser to allow numerical IPv6-addresses to be specified with the scope given, as per RFC4007 - with a percent letter that itself needs to be URL escaped. For example, for an address of fe80::1234%1 the HTTP URL is: "http://[fe80::1234%251]/"
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 7cdc7342a..c2fd36825 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -903,6 +903,8 @@ struct connectdata {
set. */
char *ip_addr_str;
+ unsigned int scope; /* address scope for IPv6 */
+
char protostr[16]; /* store the protocol string in this buffer */
int socktype; /* SOCK_STREAM or SOCK_DGRAM */
@@ -1478,6 +1480,7 @@ struct UserDefined {
bool proxy_transfer_mode; /* set transfer mode (;type=<a|i>) when doing FTP
via an HTTP proxy */
char *str[STRING_LAST]; /* array of strings, pointing to allocated memory */
+ unsigned int scope; /* address scope for IPv6 */
};
struct Names {