From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 85B1920945B67 for ; Sun, 17 Sep 2017 19:13:19 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2017 19:16:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,410,1500966000"; d="scan'208";a="1220108243" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 17 Sep 2017 19:16:22 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 17 Sep 2017 19:16:21 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 17 Sep 2017 19:16:21 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Mon, 18 Sep 2017 10:16:19 +0800 From: "Wu, Jiaxin" To: Karunakar P , "'edk2-devel@lists.01.org'" , "Ye, Ting" Thread-Topic: [edk2] Failed to clear configuration in Ip4Config2 Protocol Thread-Index: AdMskj7BWl5bVzVoSqGYPpbI86DnSAAAiyAgAFyJIZAAhwAWUA== Date: Mon, 18 Sep 2017 02:16:19 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B727416332C12@SHSMSX103.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWQ0ZTdjNmItOWI4Mi00NmRmLWExYzUtMWRkMjBlOWVkZmM3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjB1N2VLOUVyb0RjZzhwdlwvVEtFVFZTTzV3d3FlSnRJUFJRaDQrSHlLaWRjPSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Failed to clear configuration in Ip4Config2 Protocol X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2017 02:13:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Karunakar, According the UEFI Spec, the Ip4Config2DataTypeManualAddress, Ip4Config2Dat= aTypeGateway and Ip4Config2DataTypeDnsServer configuration data are not allowed to set via SetData() if the policy is DHCP. So, the clear feature i= s only for the manual configuration. This is our design purpose and also t= he reason why the feature is not apply to the Ip4Config2DataTypeInterfaceIn= fo/Ip4Config2DataTypePolicy. Thanks, Jiaxin > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Karunakar P > Sent: Friday, September 15, 2017 5:41 PM > To: 'edk2-devel@lists.01.org' > Subject: Re: [edk2] Failed to clear configuration in Ip4Config2 Protocol >=20 > Hello All, >=20 > Could you please anyone provide comment on this? >=20 > Thank you, > karunakar >=20 > From: Karunakar P > Sent: Wednesday, September 13, 2017 7:04 PM > To: 'edk2-devel@lists.01.org' > Subject: RE: RE: Failed to clear configuration in Ip4Config2 Protocol >=20 > Hello All, >=20 > I was trying to verify the feature "Allow SetData to clear configuration = in > Ip4Config2/Ip6Config Protocol" , But SetData returns with Write Protected > Error Status >=20 > [Steps followed] >=20 > 1. I've taken the above feature changes. >=20 > 2. I've a UEFI test Application which call to SetData with DataSize= is 0 and > Data is NULL >=20 > Status =3D Ip4Cfg2->SetData ( >=20 > Ip4Cfg2, >=20 > Ip4Config2DataTypeManualAddress, >=20 > 0, >=20 > 0 >=20 > ); >=20 > 3. But SetData returns with Write Protected Error Status // = Status =3D > Write Protected >=20 > 4. Faced the same error for setting Gateway & DnsServer >=20 > Guess the return is happening from > Ip4Config2SetManualAddress() -> > ... > if (Instance->Policy !=3D Ip4Config2PolicyStatic) { > return EFI_WRITE_PROTECTED; > } > ... >=20 > Could you please help on this whether am I missing anything or anything e= lse > need to be done to resolve this? >=20 > Thanks, > karunakar >=20 >=20 > From: Karunakar P > Sent: Wednesday, September 13, 2017 7:00 PM > To: edk2-devel@lists.01.org > Subject: RE: Failed to clear configuration in Ip4Config2 Protocol >=20 > Hello All, >=20 > I was trying to verify the feature "Allow SetData to clear configuration = in > Ip4Config2/Ip6Config Protocol" , But SetData returns with Write Protected > Error Status >=20 > [Steps followed] >=20 > 1. I've taken the above feature changes. >=20 > 2. I've a UEFI test Application which call to SetData with DataSize= is 0 and > Data is NULL >=20 > Status =3D Ip4Cfg2->SetData ( >=20 > Ip4Cfg2, >=20 > Ip4Config2DataTypeManualAddress, >=20 > 0, >=20 > 0 >=20 > ); >=20 > 3. But SetData returns with Write Protected Error Status // = Status =3D > Write Protected >=20 > 4. Faced the same error for setting Gateway &DnsServer >=20 > Guess the error is happening from >=20 >=20 > Thanks, > karunakar > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel