From 857a971c3e2c6da4a6feeef2072ef1011fedd38e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 23 Mar 2015 05:46:04 +0100 Subject: Some Android fixes for issues introduced by multi-interface support Not really tested, I'll do that when the multiif support is finished. --- src/config.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/config.c') 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 */ -- cgit v1.2.3