summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-31 19:38:18 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-31 19:38:18 +0200
commitee8b2de4b795fbc3b292e14c9f088244a7e08690 (patch)
tree561cfa9b830d315e4307d8c1aeceb1c475e192da /src/peer.h
parent0c82651c30bf543903ca05df4e5b179201353ee1 (diff)
downloadfastd-ee8b2de4b795fbc3b292e14c9f088244a7e08690.tar
fastd-ee8b2de4b795fbc3b292e14c9f088244a7e08690.zip
ecfxp: refresh session key periodically
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peer.h b/src/peer.h
index 9df018e..1ffa18b 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -76,6 +76,7 @@ void fastd_peer_reset(fastd_context *ctx, fastd_peer *peer);
fastd_peer* fastd_peer_add(fastd_context *ctx, fastd_peer_config *conf);
fastd_peer* fastd_peer_add_temp(fastd_context *ctx, const fastd_peer_address *address);
fastd_peer* fastd_peer_set_established_merge(fastd_context *ctx, fastd_peer *perm_peer, fastd_peer *temp_peer);
+void fastd_peer_set_established(fastd_context *ctx, fastd_peer *peer);
const fastd_eth_addr* fastd_get_source_address(const fastd_context *ctx, fastd_buffer buffer);
const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buffer buffer);
@@ -96,8 +97,6 @@ static inline bool fastd_peer_is_established(const fastd_peer *peer) {
return (peer->state == STATE_ESTABLISHED);
}
-void fastd_peer_set_established(fastd_context *ctx, fastd_peer *peer);
-
static inline void fastd_peer_seen(fastd_context *ctx, fastd_peer *peer) {
peer->seen = ctx->now;
}