summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:08:30 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:08:30 +0200
commitcb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5 (patch)
tree77a4aa43ce21d7ade33243af9666e4a6fe2a4cb7 /src/peer.h
parent5d111c83ff2fb9fb1e094ccfdfa919a4731ec05b (diff)
downloadfastd-cb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5.tar
fastd-cb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5.zip
Rename WITH_VERIFY CMake option to WITH_DYNAMIC_PEERS
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 3451343..c73f2ea 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -73,7 +73,7 @@ struct fastd_peer {
struct timespec establish_handshake_timeout; /**< A timeout during which all handshakes for this peer will be ignored after a new connection has been established */
-#ifdef WITH_VERIFY
+#ifdef WITH_DYNAMIC_PEERS
bool dynamic; /**< Specifies if the peer has been added dynamically by a on-verify script */
struct timespec verify_timeout; /**< Specifies the minimum time after which on-verify may be run again */
@@ -202,7 +202,7 @@ static inline void fastd_peer_unschedule_handshake(fastd_peer_t *peer) {
fastd_dlist_remove(&peer->handshake_entry);
}
-#ifdef WITH_VERIFY
+#ifdef WITH_DYNAMIC_PEERS
/** Call to signal that there is currently an asychronous on-verify command running for the peer */
static inline void fastd_peer_set_verifying(fastd_peer_t *peer) {
peer->verify_timeout = fastd_in_seconds(MIN_VERIFY_INTERVAL);
@@ -231,7 +231,7 @@ static inline bool fastd_peer_is_floating(const fastd_peer_t *peer) {
/** Checks if a peer is not statically configured, but added after a on-verify run */
static inline bool fastd_peer_is_dynamic(const fastd_peer_t *peer UNUSED) {
-#ifdef WITH_VERIFY
+#ifdef WITH_DYNAMIC_PEERS
return peer->dynamic;
#else
return false;