From patchwork Tue Jul 3 06:17:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Schwabe X-Patchwork-Id: 396 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director12.mail.ord1d.rsapps.net ([172.27.255.50]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id g1sVFOqhO1u1EAAAIUCqbw for ; Tue, 03 Jul 2018 12:18:50 -0400 Received: from proxy12.mail.iad3a.rsapps.net ([172.27.255.50]) by director12.mail.ord1d.rsapps.net (Dovecot) with LMTP id D0x+AOqhO1v3eQAAIasKDg ; Tue, 03 Jul 2018 12:18:50 -0400 Received: from smtp30.gate.iad3a ([172.27.255.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy12.mail.iad3a.rsapps.net with LMTP id AIFeDOqhO1s3VQAAh9K5Vw ; Tue, 03 Jul 2018 12:18:50 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp30.gate.iad3a.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=rfc2549.org X-Suspicious-Flag: YES X-Classification-ID: c3f3261e-7edc-11e8-8191-525400089674-1-1 Received: from [216.105.38.7] ([216.105.38.7:60391] helo=lists.sourceforge.net) by smtp30.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 8B/6C-12494-8E1AB3B5; Tue, 03 Jul 2018 12:18:48 -0400 Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1faO0H-0002mh-7b; Tue, 03 Jul 2018 16:18:09 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1faO0F-0002mV-G0 for openvpn-devel@lists.sourceforge.net; Tue, 03 Jul 2018 16:18:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iiwjbiCqUXSmoUfjvZfUXnvVWgzbtnIpwfgtyn6ZT/o=; b=LgU/swInKrWXNFwHWhmWtEoiHq n4KE2tBLp7CUOK1Na7oiOkriqWAnq8iLJlmkT7GItBcweU3zerIrURkMg5Pz8fzDJFbWJWpHs8F63 xtWy7lU82dP1y/9rK1t49NahH61erSbk6dM6KNFSJy3dq8QGlyvmGKXeO+YAj/NXdEJc=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iiwjbiCqUXSmoUfjvZfUXnvVWgzbtnIpwfgtyn6ZT/o=; b=cW4amjt4EQKtKeQwh+IZR/3pji 3zrrW8N5gMbOG4DBvGkRTNpdXqh3e48MjU6R9F3LWabjTpvgFx5i+cu038puNNBljBaoilcN5Md37 B2aAFrb62R5NNpMYBu+ATCCMWMVEsrTLgxB00iwSHbykVgenwmR1QjwMlaMmhE24X0uY=; Received: from mail.blinkt.de ([192.26.174.232]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1faO06-00FpDG-OV for openvpn-devel@lists.sourceforge.net; Tue, 03 Jul 2018 16:18:07 +0000 Received: from kamera.blinkt.de ([2001:638:502:390:20c:29ff:fec8:535c]) by mail.blinkt.de with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1faNzz-000JM2-AV for openvpn-devel@lists.sourceforge.net; Tue, 03 Jul 2018 18:17:51 +0200 Received: (nullmailer pid 7724 invoked by uid 10006); Tue, 03 Jul 2018 16:17:51 -0000 From: Arne Schwabe To: openvpn-devel@lists.sourceforge.net Date: Tue, 3 Jul 2018 18:17:51 +0200 Message-Id: <20180703161751.7680-1-arne@rfc2549.org> X-Mailer: git-send-email 2.17.1 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different X-Headers-End: 1faO06-00FpDG-OV Subject: [Openvpn-devel] [PATCH] Add MTU to Android IFCONFIG6 control command X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox 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 --- src/openvpn/tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index f9b9c716..26baa206 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);