aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/network/host.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/network/host.h')
-rw-r--r--Source/charon/network/host.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/charon/network/host.h b/Source/charon/network/host.h
index c5293bcdf..d81efffa6 100644
--- a/Source/charon/network/host.h
+++ b/Source/charon/network/host.h
@@ -155,7 +155,16 @@ struct host_t {
* @param other the other to compare
* @return TRUE if addresses are equal.
*/
- bool (*ip_is_equal) (host_t *this, host_t *other);
+ bool (*ip_equals) (host_t *this, host_t *other);
+
+ /**
+ * @brief Compare two hosts, with port.
+ *
+ * @param this object to compare
+ * @param other the other to compare
+ * @return TRUE if addresses and ports are equal.
+ */
+ bool (*equals) (host_t *this, host_t *other);
/**
* @brief Destroy this host object