diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-15 04:13:49 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-15 04:13:49 +0200 |
commit | e930fc0f769adacd6674546c07c2d5221bed95cd (patch) | |
tree | 46f4c30fe28a9ca895adf47b0c0a28115bfc4a18 /src/peer.h | |
parent | bffe80f3d28356003c3ca24e3933910d5968697d (diff) | |
download | fastd-e930fc0f769adacd6674546c07c2d5221bed95cd.tar fastd-e930fc0f769adacd6674546c07c2d5221bed95cd.zip |
Allow setting dynamic peers to flaoting
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |