diff options
author | Martin Willi <martin@strongswan.org> | 2008-06-06 15:05:54 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-06-06 15:05:54 +0000 |
commit | 5a22a02156816fc9f56ca56c70fbfda6574b285d (patch) | |
tree | 061ab063820d3db0272c55083ff26ac6d170ce51 /src/libstrongswan/utils/host.h | |
parent | 1e9c46f13daced3199953f4d1758c7e03c935083 (diff) | |
download | strongswan-5a22a02156816fc9f56ca56c70fbfda6574b285d.tar.bz2 strongswan-5a22a02156816fc9f56ca56c70fbfda6574b285d.tar.xz |
DNS resolving of ike_cfg hosts dynamically on demand
Diffstat (limited to 'src/libstrongswan/utils/host.h')
-rw-r--r-- | src/libstrongswan/utils/host.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/host.h b/src/libstrongswan/utils/host.h index fd2fe01b1..6a1d824c6 100644 --- a/src/libstrongswan/utils/host.h +++ b/src/libstrongswan/utils/host.h @@ -160,6 +160,16 @@ struct host_t { host_t *host_create_from_string(char *string, u_int16_t port); /** + * Constructor to create a host_t from a DNS name. + * + * @param string hostname to resolve + * @param family family to prefer, 0 for first match + * @param port port number + * @return host_t, NULL lookup failed + */ +host_t *host_create_from_dns(char *string, int family, u_int16_t port); + +/** * Constructor to create a host_t object from an address chunk * * @param family Address family, such as AF_INET or AF_INET6 |