DNS resolving of ike_cfg hosts dynamically on demand
This commit is contained in:
@@ -159,6 +159,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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user