diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 05:46:04 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 05:46:04 +0100 |
commit | 857a971c3e2c6da4a6feeef2072ef1011fedd38e (patch) | |
tree | 60f283fc136d6c27fb39f3c64a425a0e5910b2bb /src/config.c | |
parent | 15825beebf1b8675a19ca9098c932aa94ba5748e (diff) | |
download | fastd-857a971c3e2c6da4a6feeef2072ef1011fedd38e.tar fastd-857a971c3e2c6da4a6feeef2072ef1011fedd38e.zip |
Some Android fixes for issues introduced by multi-interface support
Not really tested, I'll do that when the multiif support is finished.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index deb3208..1ac9e81 100644 --- a/src/config.c +++ b/src/config.c @@ -545,6 +545,13 @@ void fastd_configure(int argc, char *const argv[]) { /** Performs some basic checks on the configuration */ static void config_check_base(void) { + if (fastd_use_android_integration()) { + if (conf.mode != MODE_TUN) + exit_error("In Android integration mode only TUN interfaces are supported"); + + if (!fastd_config_single_iface()) + exit_error("In Android integration mode exactly one peer must be configured"); + } } /** Performs more checks on the configuration */ |