From: Arne Schwabe Date: Tue, 3 Jul 2018 16:17:51 +0000 (+0200) Subject: Add MTU to Android IFCONFIG6 control command X-Git-Tag: v2.5_beta1~465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e050bdfe9489ae9d0a15cb000360b73c7c748b59;p=thirdparty%2Fopenvpn.git Add MTU to Android IFCONFIG6 control command Since OpenVPN nows supports IPv6 only connections, OpenVPN for Android cannot longer rely on IFCONFIG to send the MTU. Add sending the MTU to IFCONFIG6 too. Acked-by: Gert Doering Message-Id: <20180703161751.7680-1-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17186.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index f9b9c7166..26baa2066 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -910,8 +910,8 @@ do_ifconfig_ipv6(struct tuntap *tt, const char *ifname, int tun_mtu, #elif defined(TARGET_ANDROID) char out6[64]; - openvpn_snprintf(out6, sizeof(out6), "%s/%d", - ifconfig_ipv6_local,tt->netbits_ipv6); + openvpn_snprintf(out6, sizeof(out6), "%s/%d %d", + ifconfig_ipv6_local,tt->netbits_ipv6, tun_mtu); management_android_control(management, "IFCONFIG6", out6); #elif defined(TARGET_SOLARIS) argv_printf(&argv, "%s %s inet6 unplumb", IFCONFIG_PATH, ifname);