summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-15 16:35:34 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-15 16:35:34 +0200
commit316180d885042b7ea2f2f1f67c3175c0a1ad41fa (patch)
tree77f2fb0d5778455c2bed55be348cf06c3380a651 /src/peer.h
parent7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3 (diff)
downloadfastd-316180d885042b7ea2f2f1f67c3175c0a1ad41fa.tar
fastd-316180d885042b7ea2f2f1f67c3175c0a1ad41fa.zip
status: add uptime and established times
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peer.h b/src/peer.h
index 8c7ef88..3eed071 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -89,6 +89,7 @@ struct fastd_peer {
fastd_timeout_t last_handshake_response_timeout; /**< All handshakes from last_handshake_address will be ignored until this timeout has occured */
fastd_peer_address_t last_handshake_response_address; /**< The address the last handshake was received from */
+ int64_t established; /**< The time this peer connection has been established */
fastd_timeout_t establish_handshake_timeout; /**< A timeout during which all handshakes for this peer will be ignored after a new connection has been established */
const char *config_source_dir; /**< The directory this peer's configuration was loaded from */