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.c | |
parent | 1812a63c043b219277441bae1f36a99a5b7b5899 (diff) | |
download | fastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.tar fastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.zip |
Generalize float attribute, deprecate old float syntax
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -174,7 +174,7 @@ static void setup_peer(fastd_context_t *ctx, fastd_peer_t *peer) { if (!peer->protocol_state) ctx->conf->protocol->init_peer_state(ctx, peer); - if (!fastd_peer_is_floating(peer) || fastd_peer_is_dynamic(peer)) { + if (peer->address.sa.sa_family != AF_UNSPEC || fastd_peer_is_dynamic(peer)) { unsigned delay = 0; if (has_group_config_constraints(peer->group->conf)) delay = fastd_rand(ctx, 0, 3000); @@ -340,7 +340,7 @@ bool fastd_peer_config_equal(const fastd_peer_config_t *peer1, const fastd_peer_ if (!strequal(peer1->hostname, peer2->hostname)) return false; - if(peer1->dynamic_float != peer2->dynamic_float) + if(peer1->floating != peer2->floating) return false; if (!fastd_peer_address_equal(&peer1->address, &peer2->address)) |