summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-29 19:04:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-29 19:04:31 +0200
commit7f33ccb920df2c308aa3076522bea683c66cb83d (patch)
treedd84a6fa62c936583cc8e28daf89e0713b4dd1ea /src/peer.c
parent620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69 (diff)
downloadfastd-7f33ccb920df2c308aa3076522bea683c66cb83d.tar
fastd-7f33ccb920df2c308aa3076522bea683c66cb83d.zip
Don't initialize monotone timestamps with zero
The monotone timestamp is near zero on linux systems, confusing fastd.
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peer.c b/src/peer.c
index a9c3415..5c30307 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -201,16 +201,16 @@ static void setup_peer(fastd_context_t *ctx, fastd_peer_t *peer) {
fastd_remote_t *remote;
for (remote = peer->remotes; remote; remote = remote->next) {
- remote->last_resolve = (struct timespec){0, 0};
- remote->last_resolve_return = (struct timespec){0, 0};
+ remote->last_resolve = ctx->conf->long_ago;
+ remote->last_resolve_return = ctx->conf->long_ago;
}
peer->next_remote = peer->remotes;
- peer->last_handshake = (struct timespec){0, 0};
+ peer->last_handshake = ctx->conf->long_ago;
peer->last_handshake_address.sa.sa_family = AF_UNSPEC;
- peer->last_handshake_response = (struct timespec){0, 0};
+ peer->last_handshake_response = ctx->conf->long_ago;
peer->last_handshake_response_address.sa.sa_family = AF_UNSPEC;
if (!peer->protocol_state)