From ca648e7a3b76d71817b38d5bc7d765fc994f40ab Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 19 Jul 2013 18:29:30 +0200 Subject: Generalize float attribute, deprecate old float syntax --- src/peer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/peer.h') 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) { -- cgit v1.2.3