summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-11-01 11:04:39 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-11-01 11:04:39 +0100
commit80cbd0c9bd83fd0501b505f54ec8e29028894af5 (patch)
tree1ed94db626c470b9d468a61b3d84a88aafd9c233 /src/fastd.h
parent921485a5bc0c8448bcc23ae5587777e762473dd2 (diff)
downloadfastd-80cbd0c9bd83fd0501b505f54ec8e29028894af5.tar
fastd-80cbd0c9bd83fd0501b505f54ec8e29028894af5.zip
Refactor bind address configuration
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index cf5aaf1..9f84ae7 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -160,6 +160,7 @@ struct _fastd_config {
char *ifname;
+ unsigned n_bind_addrs;
fastd_bind_address *bind_addrs;
fastd_bind_address *bind_addr_default_v4;
@@ -187,6 +188,7 @@ struct _fastd_config {
fastd_string_stack *peer_dirs;
fastd_peer_config *peers;
+ unsigned n_peers;
unsigned n_floating;
unsigned n_v4;
unsigned n_v6;
@@ -277,6 +279,7 @@ bool fastd_config_protocol(fastd_context *ctx, fastd_config *conf, const char *n
bool fastd_config_method(fastd_context *ctx, fastd_config *conf, const char *name);
bool fastd_config_crypto(fastd_context *ctx, fastd_config *conf, const char *alg, const char *impl);
bool fastd_config_add_log_file(fastd_context *ctx, fastd_config *conf, const char *name, int level);
+void fastd_config_bind_address(fastd_context *ctx, fastd_config *conf, const fastd_peer_address *address, const char *bindtodev, bool default_v4, bool default_v6);
void fastd_configure(fastd_context *ctx, fastd_config *conf, int argc, char *const argv[]);
void fastd_reconfigure(fastd_context *ctx, fastd_config *conf);
void fastd_config_release(fastd_context *ctx, fastd_config *conf);