aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/config/ike_cfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/config/ike_cfg.h')
-rw-r--r--src/libcharon/config/ike_cfg.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libcharon/config/ike_cfg.h b/src/libcharon/config/ike_cfg.h
index 719ceb9dd..d1db3b463 100644
--- a/src/libcharon/config/ike_cfg.h
+++ b/src/libcharon/config/ike_cfg.h
@@ -78,6 +78,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.
*
* @param allow_any allow any address to match