summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-25 00:20:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-25 00:20:05 +0200
commitf34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75 (patch)
tree0edd536548163077da4c22ce7785936a3f9c06a6 /src/peer.h
parent1b21919d544e30cec89259cfa9353e10852cfc82 (diff)
downloadfastd-f34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75.tar
fastd-f34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75.zip
Make a few struct fields that are not supposed to be changed defines instead
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peer.h b/src/peer.h
index b555c85..50e8a68 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -182,12 +182,12 @@ static inline void fastd_peer_unschedule_handshake(fastd_peer_t *peer) {
#ifdef WITH_VERIFY
static inline void fastd_peer_set_verifying(fastd_peer_t *peer) {
- peer->verify_timeout = fastd_in_seconds(conf.min_verify_interval);
+ peer->verify_timeout = fastd_in_seconds(MIN_VERIFY_INTERVAL);
}
static inline void fastd_peer_set_verified(fastd_peer_t *peer, bool ok) {
if (ok)
- peer->verify_valid_timeout = fastd_in_seconds(conf.verify_valid_time);
+ peer->verify_valid_timeout = fastd_in_seconds(VERIFY_VALID_TIME);
else
peer->verify_valid_timeout = ctx.now;
}
@@ -233,7 +233,7 @@ static inline bool fastd_remote_is_dynamic(const fastd_remote_t *remote) {
}
static inline void fastd_peer_seen(fastd_peer_t *peer) {
- peer->timeout = fastd_in_seconds(conf.peer_stale_time);
+ peer->timeout = fastd_in_seconds(PEER_STALE_TIME);
}
static inline bool fastd_peer_is_socket_dynamic(const fastd_peer_t *peer) {