ike-cfg: add a method to resolve local/remote hosts with port

This commit is contained in:
Martin Willi
2013-09-04 10:38:36 +02:00
parent f7cb6eaaa8
commit e743275cae
2 changed files with 30 additions and 0 deletions
+16
View File
@@ -77,6 +77,22 @@ struct ike_cfg_t {
*/
ike_version_t (*get_version)(ike_cfg_t *this);
/**
* Resolve the local address to use for initiation.
*
* @param family address family to prefer, or AF_UNSPEC
* @return resolved host, NULL on error
*/
host_t* (*resolve_me)(ike_cfg_t *this, int family);
/**
* Resolve the remote address to use for initiation.
*
* @param family address family to prefer, or AF_UNSPEC
* @return resolved host, NULL on error
*/
host_t* (*resolve_other)(ike_cfg_t *this, int family);
/**
* Get own address.
*