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.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peer.c') 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)) -- cgit v1.2.3