diff options
author | Kim Vandry <vandry@TZoNE.ORG> | 2013-09-07 12:45:50 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-09-12 21:11:47 +0200 |
commit | df69440d05f1133a9053e19a9bf576c8b13514b9 (patch) | |
tree | cfe02627be58fea1a429efa2112dfa3969a981c1 /lib/hostip.h | |
parent | 345955e87e21769e917cf407c5c794a05c4f2612 (diff) | |
download | curl-df69440d05f1133a9053e19a9bf576c8b13514b9.tar.gz |
libcurl: New options to bind DNS to local interfaces or IP addresses
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index a38f732a4..997800a88 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -201,6 +201,27 @@ extern sigjmp_buf curl_jmpenv; CURLcode Curl_set_dns_servers(struct SessionHandle *data, char *servers); /* + * Function provided by the resolver backend to set + * outgoing interface to use for DNS requests + */ +CURLcode Curl_set_dns_interface(struct SessionHandle *data, + const char *interface); + +/* + * Function provided by the resolver backend to set + * local IPv4 address to use as source address for DNS requests + */ +CURLcode Curl_set_dns_local_ip4(struct SessionHandle *data, + const char *local_ip4); + +/* + * Function provided by the resolver backend to set + * local IPv6 address to use as source address for DNS requests + */ +CURLcode Curl_set_dns_local_ip6(struct SessionHandle *data, + const char *local_ip6); + +/* * Clean off entries from the cache */ void Curl_hostcache_clean(struct SessionHandle *data, struct curl_hash *hash); |