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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/charon/network/host.h b/Source/charon/network/host.h
index fa06b1474..379eab02e 100644
--- a/Source/charon/network/host.h
+++ b/Source/charon/network/host.h
@@ -105,6 +105,15 @@ struct host_t {
* @return port number
*/
u_int16_t (*get_port) (host_t *this);
+
+ /**
+ * @brief Compare two hosts.
+ *
+ * @param this object to compare
+ * @param other the other to compare
+ * @return TRUE if port and address are equal
+ */
+ bool (*equals) (host_t *this, host_t *other);
/**
* @brief Destroy this host object