diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-31 19:38:18 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-31 19:38:18 +0200 |
commit | ee8b2de4b795fbc3b292e14c9f088244a7e08690 (patch) | |
tree | 561cfa9b830d315e4307d8c1aeceb1c475e192da /src/peer.h | |
parent | 0c82651c30bf543903ca05df4e5b179201353ee1 (diff) | |
download | fastd-ee8b2de4b795fbc3b292e14c9f088244a7e08690.tar fastd-ee8b2de4b795fbc3b292e14c9f088244a7e08690.zip |
ecfxp: refresh session key periodically
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |