summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-28 23:34:55 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-29 00:45:13 +0200
commitdcaf41a18e1bd9014d1cf3ca7a7129a1be76e811 (patch)
tree024ee42fb7f76ed8e2fb4c1a5ec66031cdcc26b6 /src/peer.h
parent2343f5329c0d5e7d8073810e56577d944b7c518e (diff)
downloadfastd-dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811.tar
fastd-dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811.zip
Simplify keepalive sending
By using a global keepalive timer, the O(n) keepalive queue purge operation on every send operation is avoided.
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 5a73abd..39b17a8 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -43,6 +43,7 @@ struct fastd_peer {
fastd_peer_state_t state;
struct timespec seen;
+ struct timespec last_send;
fastd_remote_t *remotes;
fastd_remote_t *next_remote;