From df69440d05f1133a9053e19a9bf576c8b13514b9 Mon Sep 17 00:00:00 2001 From: Kim Vandry Date: Sat, 7 Sep 2013 12:45:50 -0400 Subject: libcurl: New options to bind DNS to local interfaces or IP addresses --- lib/hostsyn.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'lib/hostsyn.c') diff --git a/lib/hostsyn.c b/lib/hostsyn.c index 65a403545..24f8dd82c 100644 --- a/lib/hostsyn.c +++ b/lib/hostsyn.c @@ -72,4 +72,40 @@ CURLcode Curl_set_dns_servers(struct SessionHandle *data, } +/* + * 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) +{ + (void)data; + (void)interface; + return CURLE_NOT_BUILT_IN; +} + +/* + * 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) +{ + (void)data; + (void)local_ip4; + return CURLE_NOT_BUILT_IN; +} + +/* + * 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) +{ + (void)data; + (void)local_ip6; + return CURLE_NOT_BUILT_IN; +} + #endif /* truly sync */ -- cgit v1.2.3