summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 02:09:04 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 02:09:35 +0200
commit86888f3e1b6ccc0691bbd881f6a8e68b252c367e (patch)
tree66cf39bb08d89587e7a6521d9a6a351a965cd057 /src/fastd.h
parentd4c410f99a3e95478727a50e9d78d1b66cb57c19 (diff)
downloadfastd-86888f3e1b6ccc0691bbd881f6a8e68b252c367e.tar
fastd-86888f3e1b6ccc0691bbd881f6a8e68b252c367e.zip
Optimize maintenance routine (and don't run it more often than necessary)
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 1ce1055..c2b85de 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -143,8 +143,8 @@ struct fastd_config {
char *log_syslog_ident;
fastd_log_file_t *log_files;
+ unsigned maintenance_interval;
unsigned keepalive_timeout;
- unsigned keepalive_interval;
unsigned peer_stale_time;
unsigned eth_addr_stale_time;
@@ -242,7 +242,7 @@ struct fastd_context {
fastd_peer_t *peers_temp;
fastd_dlist_head_t handshake_queue;
- struct timespec next_keepalives;
+ struct timespec next_maintenance;
int async_rfd;
int async_wfd;