| Message ID | 20200630095443.7188-1-cschenk@mail.uni-paderborn.de |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director8.mail.ord1d.rsapps.net ([172.31.255.6]) by backend30.mail.ord1d.rsapps.net with LMTP id oDm2H9EM+16LHQAAIUCqbw for <patchwork@openvpn.net>; Tue, 30 Jun 2020 05:58:41 -0400 Received: from proxy16.mail.iad3b.rsapps.net ([172.31.255.6]) by director8.mail.ord1d.rsapps.net with LMTP id 6GUSHdEM+145OwAAfY0hYg ; Tue, 30 Jun 2020 05:58:41 -0400 Received: from smtp9.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy16.mail.iad3b.rsapps.net with LMTP id SNhKF9EM+15VEQAAPj+4aA ; Tue, 30 Jun 2020 05:58:41 -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: smtp9.gate.iad3b.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=fail (p=none; dis=none) header.from=mail.uni-paderborn.de X-Suspicious-Flag: YES X-Classification-ID: 4615ed70-bab8-11ea-891e-525400f4d366-1-1 Received: from [216.105.38.7] ([216.105.38.7:35568] helo=lists.sourceforge.net) by smtp9.gate.iad3b.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id B9/FE-23856-0DC0BFE5; Tue, 30 Jun 2020 05:58:40 -0400 Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1jqD1O-0003qU-G6; Tue, 30 Jun 2020 09:57:46 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <cschenk@mail.uni-paderborn.de>) id 1jqD1N-0003qE-9H for openvpn-devel@lists.sourceforge.net; Tue, 30 Jun 2020 09:57:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ERkaqu2VO7LyUBTec4vwgXkoKL19LNxoSnv6f1UpE34=; b=FpgJvaj24c77CKMnMYCbKry0Ht H329Y62WdKQPJwKh6Bmd2gp4I7a/lhhzQjnRq0x3iQ2/qa1n3RF0UDsrBNjZ0mIBoR7+TiDflJUPs YhxMrhciJlLfsafi9ef45G5WTBajDKzGD8BMgTYGd78O1o54HHKl43RoNMOp+bCfj04Y=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ERkaqu2VO7LyUBTec4vwgXkoKL19LNxoSnv6f1UpE34=; b=PX+RMBwdRhpLa3Ip3drPFAfIK0 13RL/iPmuHsNEhTkzxHuU/wD3aiYRZOEJs3F2fLAoq2b1AO7RWwVUYX0GUnbHN8nqJkVEdBykVbxo 8OuUHjjnrHlajj34ruHQuQDDOdqEEnEklVzAFLO+i0Jrvmc6sXSVKmAZxDRVa2yZCHZ8=; Received: from collins.uni-paderborn.de ([131.234.189.14]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jqD1L-002r9g-Ly for openvpn-devel@lists.sourceforge.net; Tue, 30 Jun 2020 09:57:45 +0000 Received: from pova.uni-paderborn.de ([131.234.189.23] helo=localhost.localdomain) by mail.uni-paderborn.de with esmtp (Exim 4.94 collins) id 1jqD13-0006o6-4z for openvpn-devel@lists.sourceforge.net; Tue, 30 Jun 2020 11:57:25 +0200 Received: from mail.uni-paderborn.de by pova with queue id 4018893-2 for openvpn-devel@lists.sourceforge.net; Tue, 30 Jun 2020 09:57:24 GMT From: Christopher Schenk <cschenk@mail.uni-paderborn.de> To: openvpn-devel@lists.sourceforge.net Date: Tue, 30 Jun 2020 11:54:44 +0200 Message-Id: <20200630095443.7188-1-cschenk@mail.uni-paderborn.de> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20200629205810.GS1431@greenie.muc.de> References: <20200629205810.GS1431@greenie.muc.de> MIME-Version: 1.0 X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2020.6.30.94818, AntiVirus-Engine: 5.74.0, AntiVirus-Data: 2020.6.29.5740002 X-IMT-Spam-Score: 0.0 () X-IMT-Authenticated-Sender: X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Headers-End: 1jqD1L-002r9g-Ly Subject: [Openvpn-devel] [PATCH] Unified success messages for setting mtu X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel] Unified success messages for setting mtu
|
|
Commit Message
Christopher Schenk
June 29, 2020, 11:54 p.m. UTC
that makes sense. I updated the patch. Christopher --- src/openvpn/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Acked-by: Gert Doering <gert@greenie.muc.de> Thanks :-) - given that this is somewhat trivial, I have not actually run a binary to look at the messages. I have counted arguments and done a test build to see if new warnings show up (no). I *do* see an old warning... tun.c: In function 'windows_set_mtu': tun.c:5523:21: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'DWORD {aka long unsigned int}' [-Wformat=] msg(M_WARN, "TUN: Setting %s mtu failed: %s [status=%u if_index=%d]", mmmh... Your patch has been applied to the master branch. commit efe01d52e36c597484b6fa24c4820b6345d08ae6 Author: Christopher Schenk Date: Tue Jun 30 11:54:44 2020 +0200 Unified success messages for setting mtu Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20200630095443.7188-1-cschenk@mail.uni-paderborn.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20171.html Signed-off-by: Gert Doering <gert@greenie.muc.de> -- kind regards, Gert Doering
Hi, On Mon, Jul 6, 2020 at 11:43 AM Gert Doering <gert@greenie.muc.de> wrote: > > Acked-by: Gert Doering <gert@greenie.muc.de> > > Thanks :-) - given that this is somewhat trivial, I have not actually > run a binary to look at the messages. I have counted arguments and done > a test build to see if new warnings show up (no). > > I *do* see an old warning... > > tun.c: In function 'windows_set_mtu': > tun.c:5523:21: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'DWORD {aka long unsigned int}' [-Wformat=] > msg(M_WARN, "TUN: Setting %s mtu failed: %s [status=%u if_index=%d]", It's ok if this is only for Windows code (I assume it is because of the name of the function) because x86 and ARM have the same endian-ness and are the only Windows platforms (that I know of). However, it would still be better to use "%lu" to avoid the warning and to future-proof it for any _new_ Windows platform that's different. (Although I admit Microsoft is unlikely to do that.) Best regards, Jon
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 5567c445..2a2df27f 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -5525,7 +5525,7 @@ windows_set_mtu(const int iface_index, const short family, } else { - msg(M_INFO, "Successfully set %s mtu on interface %d", family_name, iface_index); + msg(M_INFO, "%s MTU set to %d on interface %d using SetIpInterfaceEntry()", family_name, mtu, iface_index); } }