From e930fc0f769adacd6674546c07c2d5221bed95cd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 15 Jun 2012 04:13:49 +0200 Subject: Allow setting dynamic peers to flaoting --- src/peer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/peer.h') diff --git a/src/peer.h b/src/peer.h index 007eefd..b326ad1 100644 --- a/src/peer.h +++ b/src/peer.h @@ -62,6 +62,7 @@ struct _fastd_peer_config { char *hostname; fastd_peer_address address; + bool dynamic_float; char *key; fastd_protocol_peer_config *protocol_config; @@ -92,7 +93,7 @@ const fastd_eth_addr* fastd_get_source_address(const fastd_context *ctx, fastd_b const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buffer buffer); static inline bool fastd_peer_config_is_floating(const fastd_peer_config *config) { - return (config->hostname == NULL && config->address.sa.sa_family == AF_UNSPEC); + return ((config->hostname == NULL && config->address.sa.sa_family == AF_UNSPEC) || config->dynamic_float); } static inline bool fastd_peer_config_is_dynamic(const fastd_peer_config *config) { -- cgit v1.2.3