From b96a7b180024f34bc67168a4a42d7e5b819d726a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 22 Mar 2015 23:34:06 +0100 Subject: Add iface_persist config option (always true for now) --- src/config.c | 1 + src/fastd.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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 */ -- cgit v1.2.3