From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (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 0E4B121E8796F for ; Wed, 13 Sep 2017 06:30:48 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D467282047 for ; Wed, 13 Sep 2017 19:06:23 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B480882046 for ; Wed, 13 Sep 2017 19:06:23 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS for ; Wed, 13 Sep 2017 19:06:23 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by Venus2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b%14]) with mapi id 14.03.0248.002; Wed, 13 Sep 2017 19:03:42 +0530 From: Karunakar P To: "'edk2-devel@lists.01.org'" Thread-Topic: RE: Failed to clear configuration in Ip4Config2 Protocol Thread-Index: AdMskj7BWl5bVzVoSqGYPpbI86DnSAAAiyAg Date: Wed, 13 Sep 2017 13:33:41 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.128] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-23326.007 X-TM-AS-Result: No--16.100-5.0-31-10 X-imss-scan-details: No--16.100-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23326.007 X-TMASE-Result: 10--16.100100-10.000000 X-TMASE-MatchedRID: rYpa/RC+czERWAL+HrpOq4QnnAFRgjn9Xs5nqGvDCfOrzPs85fwUkwe0 jlRIZ0jueDnJ+6MMQbwhAHXhxeDwKl/nxjqa1wO9RlqShqb35p5A8JZETQujwvNFWeUoMXTQD0H Oi6ex7KDXDahSu7VpYbQ8ZniBTsqfO9ndheAzkmTmAId+2bAQwiUEq8j01YhfZutDqLozDsjKK4 8Aa8Xh3jba6gSbbjl+QVYK+bzrDzjSxemNC+0f0BuurbgYp+HQ6r+5bPPauHf5N0o2THGRZKgFX 2xz5NjH4j4lr4Wn4RisEFKef8ZUxqf50/sZyNUdupDIC9422DozH3zWWApNw/ufvd3T2+v3N1vv blTcLHxL55Pk4gKt9iKINqHfol/n3szvVnpBZzhIOSHptb5txy9wqaqMRxje47ndse0z1bcWP8W ertUXzFIQcS90Y9ia9yaXhPhnUZ2CIg7tJ//usYvptQwz5tsiM9g+YfdqJKFU0VW2sNabOjgE15 Ko9qShONYHRzrgLecp4656j5bjlPEnzi0PuMx/ngIgpj8eDcBpkajQR5gb3qbyPFGTn+O49zw4l zv7RUkgIa2uM5uk8mvDc/ToEtdfFm611aAsXghQ/caaY80PsQ6yDBwFSfZYlT95McwiXsE= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: Wed, 13 Sep 2017 13:30:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello All, I was trying to verify the feature "Allow SetData to clear configuration in= Ip4Config2/Ip6Config Protocol" , But SetData returns with Write Protected = Error Status [Steps followed] 1. I've taken the above feature changes. 2. I've a UEFI test Application which call to SetData with DataSize i= s 0 and Data is NULL Status =3D Ip4Cfg2->SetData ( Ip4Cfg2, Ip4Config2DataTypeManualAddress, 0, 0 ); 3. But SetData returns with Write Protected Error Status // St= atus =3D Write Protected 4. Faced the same error for setting Gateway & DnsServer Guess the return is happening from Ip4Config2SetManualAddress() -> ... if (Instance->Policy !=3D Ip4Config2PolicyStatic) { return EFI_WRITE_PROTECTED; } ... Could you please help on this whether am I missing anything or anything els= e need to be done to resolve this? Thanks, karunakar 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 Hello All, I was trying to verify the feature "Allow SetData to clear configuration in= Ip4Config2/Ip6Config Protocol" , But SetData returns with Write Protected = Error Status [Steps followed] 1. I've taken the above feature changes. 2. I've a UEFI test Application which call to SetData with DataSize i= s 0 and Data is NULL Status =3D Ip4Cfg2->SetData ( Ip4Cfg2, Ip4Config2DataTypeManualAddress, 0, 0 ); 3. But SetData returns with Write Protected Error Status // St= atus =3D Write Protected 4. Faced the same error for setting Gateway &DnsServer Guess the error is happening from Thanks, karunakar