diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-07-19 18:29:30 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-07-19 18:29:30 +0200 |
commit | ca648e7a3b76d71817b38d5bc7d765fc994f40ab (patch) | |
tree | 9f737855220c1f5a978d5207ddebe73a9c8ba93a /src/peer.h | |
parent | 1812a63c043b219277441bae1f36a99a5b7b5899 (diff) | |
download | fastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.tar fastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.zip |
Generalize float attribute, deprecate old float syntax
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |