summaryrefslogtreecommitdiffstats
path: root/src/peer.c
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.c
parent1812a63c043b219277441bae1f36a99a5b7b5899 (diff)
downloadfastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.tar
fastd-ca648e7a3b76d71817b38d5bc7d765fc994f40ab.zip
Generalize float attribute, deprecate old float syntax
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peer.c b/src/peer.c
index 528f560..ebcb867 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -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))