android: Disable listening on IPv6
authorTobias Brunner <tobias@strongswan.org>
Wed, 3 Jul 2013 15:59:44 +0000 (17:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 5 Jul 2013 07:48:27 +0000 (09:48 +0200)
As we have to use UDP encapsulation and the Linux kernel currently does
not support that this avoids issues with dual-stack gateways.

src/frontends/android/jni/libandroidbridge/charonservice.c

index 721c3a4..25fbf89 100644 (file)
@@ -417,6 +417,10 @@ static void set_options(char *logfile)
         * information */
        lib->settings->set_bool(lib->settings,
                                        "charon.plugins.socket-default.set_source", FALSE);
+       /* the Linux kernel does currently not support UDP encaspulation for IPv6
+        * so lets disable IPv6 for now to avoid issues with dual-stack gateways */
+       lib->settings->set_bool(lib->settings,
+                                       "charon.plugins.socket-default.use_ipv6", FALSE);
        /* don't install virtual IPs via kernel-netlink */
        lib->settings->set_bool(lib->settings,
                                        "charon.install_virtual_ip", FALSE);