From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=jiaxin.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E49BD21106FCF for ; Thu, 30 Aug 2018 01:29:03 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Aug 2018 01:29:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,306,1531810800"; d="scan'208";a="87540079" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 30 Aug 2018 01:29:03 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 30 Aug 2018 01:29:02 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 30 Aug 2018 01:29:02 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.240]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.185]) with mapi id 14.03.0319.002; Thu, 30 Aug 2018 16:29:00 +0800 From: "Wu, Jiaxin" To: "Fu, Siyuan" , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" , "Ye, Ting" Thread-Topic: [Patch 2/2] ShellPkg: Update Ifconfig command to accept 32bit subnet mask. Thread-Index: AQHUPnHiCYRZNDZaY0aRcmnWb2StJaTX+hNg Date: Thu, 30 Aug 2018 08:28:59 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B72741648EC5B@SHSMSX103.ccr.corp.intel.com> References: <20180828015235.60368-1-siyuan.fu@intel.com> <20180828015235.60368-3-siyuan.fu@intel.com> In-Reply-To: <20180828015235.60368-3-siyuan.fu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzIyMzY4OTEtNDhlYy00OGJiLWJmNzItNzU4NjdhZmYwYTgwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiazh5SGdVZ3UybW1yaUhsZWxNeHIyYlwvQlh6QnF4dmNIXC9HT0hrQjRZVGdBQ3dkZXVNYmJXXC9RaVZUVzc3c0hubyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch 2/2] ShellPkg: Update Ifconfig command to accept 32bit subnet mask. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2018 08:29:04 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiaxin Wu > -----Original Message----- > From: Fu, Siyuan > Sent: Tuesday, August 28, 2018 9:53 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ruiyu ; Ye, Ting ; Wu, Jia= xin > > Subject: [Patch 2/2] ShellPkg: Update Ifconfig command to accept 32bit > subnet mask. >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Fu Siyuan > Cc: Ruiyu Ni > Cc: Ye Ting > Cc: Wu Jiaxin > --- > ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c > b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c > index 52415e0ad0..e9f644c739 100644 > --- a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c > +++ b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c > @@ -1032,6 +1032,7 @@ IfConfigSetInterfaceInfo ( > SubnetMask =3D NTOHL (SubnetMask); > TempGateway =3D NTOHL (TempGateway); > if ((SubnetMask !=3D 0) && > + (SubnetMask !=3D 0xFFFFFFFFu) && > !NetIp4IsUnicast (TempGateway, SubnetMask)) { > ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN > (STR_IFCONFIG_INVALID_GATEWAY), gShellNetwork1HiiHandle, VarArg- > >Arg); > ShellStatus =3D SHELL_INVALID_PARAMETER; > -- > 2.18.0.windows.1