aboutsummaryrefslogtreecommitdiff
path: root/socket.h
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-07-12 01:55:54 +0000
committerJames Yonan <james@openvpn.net>2010-07-12 01:55:54 +0000
commitf9b2ada0eece06158cc3ce6f6348bd431dfd7f0a (patch)
treeef5688a70b5d9f3d892f73091b20961160f1ad7f /socket.h
parentVersion 2.1.1k (diff)
downloadopenvpn-f9b2ada0eece06158cc3ce6f6348bd431dfd7f0a.tar.xz
Implemented multi-address DNS expansion on the network field of route
commands. When only a single IP address is desired from a multi-address DNS expansion, use the first address rather than a random selection. Version 2.1.1l git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6291 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--socket.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index 5155853..cd24011 100644
--- a/socket.h
+++ b/socket.h
@@ -439,6 +439,11 @@ bool unix_socket_get_peer_uid_gid (const socket_descriptor_t sd, int *uid, int *
* DNS resolution
*/
+struct resolve_list {
+ int len;
+ in_addr_t data[16];
+};
+
#define GETADDR_RESOLVE (1<<0)
#define GETADDR_FATAL (1<<1)
#define GETADDR_HOST_ORDER (1<<2)
@@ -456,6 +461,13 @@ in_addr_t getaddr (unsigned int flags,
bool *succeeded,
volatile int *signal_received);
+in_addr_t getaddr_multi (unsigned int flags,
+ const char *hostname,
+ int resolve_retry_seconds,
+ bool *succeeded,
+ volatile int *signal_received,
+ struct resolve_list *reslist);
+
/*
* Transport protocol naming and other details.
*/