summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-19 18:29:30 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-19 18:29:30 +0200
commitca648e7a3b76d71817b38d5bc7d765fc994f40ab (patch)
tree9f737855220c1f5a978d5207ddebe73a9c8ba93a /src/peer.h
parent1812a63c043b219277441bae1f36a99a5b7b5899 (diff)
downloadfastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.tar
fastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.zip
Generalize float attribute, deprecate old float syntax
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/peer.h b/src/peer.h
index 4b57197..217e5e4 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -66,7 +66,8 @@ struct fastd_peer_config {
char *hostname;
fastd_peer_address_t address;
- bool dynamic_float;
+ bool floating;
+ bool dynamic_float_deprecated;
char *key;
const fastd_peer_group_config_t *group;
@@ -121,7 +122,7 @@ static inline bool fastd_peer_allow_unknown(fastd_context_t *ctx) {
}
static inline bool fastd_peer_config_is_floating(const fastd_peer_config_t *config) {
- return ((config->hostname == NULL && config->address.sa.sa_family == AF_UNSPEC) || config->dynamic_float);
+ return ((config->hostname == NULL && config->address.sa.sa_family == AF_UNSPEC) || config->floating);
}
static inline bool fastd_peer_config_is_dynamic(const fastd_peer_config_t *config) {