summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-22 23:34:06 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-22 23:34:06 +0100
commitb96a7b180024f34bc67168a4a42d7e5b819d726a (patch)
tree871d9c686487078b641b326ca6113e9eb935dcd5 /src
parent335a4998e322ed4fe05558b75dae3244ca6d7c0d (diff)
downloadfastd-b96a7b180024f34bc67168a4a42d7e5b819d726a.tar
fastd-b96a7b180024f34bc67168a4a42d7e5b819d726a.zip
Add iface_persist config option (always true for now)
Diffstat (limited to 'src')
-rw-r--r--src/config.c1
-rw-r--r--src/fastd.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 94c8980..e9d14c4 100644
--- a/src/config.c
+++ b/src/config.c
@@ -66,6 +66,7 @@ static void default_config(void) {
conf.mtu = 1500;
conf.mode = MODE_TAP;
+ conf.iface_persist = true;
conf.secure_handshakes = true;
conf.drop_caps = DROP_CAPS_ON;
diff --git a/src/fastd.h b/src/fastd.h
index 8704cc1..296f3b1 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -195,6 +195,7 @@ struct fastd_config {
char *log_syslog_ident; /**< The identification string for messages sent to syslog (default: "fastd") */
char *ifname; /**< The configured interface name */
+ bool iface_persist; /**< Configures if peer-specific interfaces should exist always, or only when there's an established connection */
size_t n_bind_addrs; /**< Number of elements in bind_addrs */
fastd_bind_address_t *bind_addrs; /**< Configured bind addresses */