From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 42C0D21E945E6 for ; Sun, 17 Sep 2017 21:54:35 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2017 21:57:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,411,1500966000"; d="scan'208";a="136436723" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 17 Sep 2017 21:57:37 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 17 Sep 2017 21:57:37 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 17 Sep 2017 21:57:37 -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 12:57:35 +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: AdMskj7BWl5bVzVoSqGYPpbI86DnSAAAiyAgAFyJIZAAhwAWUP//oDmA//9yr3A= Date: Mon, 18 Sep 2017 04:57:34 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B727416334E00@SHSMSX103.ccr.corp.intel.com> References: <895558F6EA4E3B41AC93A00D163B727416332C12@SHSMSX103.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWVjNDY4NTYtODEzNi00NTMzLWFkNDItMmUzMzQ0ZWFiZTliIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImRGSTRXWk41UUFoeXJtT0dFTDljM2h0dkJcL0RNOFU3NlkxRDhTclZhRTlFPSJ9 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 04:54:35 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi karunakar, You can verify the DNS device path with HTTP boot feature. After the succes= sful HTTP boot DNS parsing, the device path should be like: //....../Mac(.= ..)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...). That is recommend way for the verification. Besides, you can also draft the App to call the DevPathFromTextDns and Dev= PathToTextDns libraries for the more verification. Thanks, Jiaxin =20 > -----Original Message----- > From: Karunakar P [mailto:karunakarp@amiindia.co.in] > Sent: Monday, September 18, 2017 12:22 PM > To: Wu, Jiaxin ; 'edk2-devel@lists.01.org' devel@lists.01.org>; Ye, Ting > Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol >=20 > Hi Jiaxin, >=20 > Thank you very much for your info, Yes it works fine for manual configura= tion. >=20 > And also could you please provide steps to verify "Add DNS device path > node" feature. >=20 > Thanks, > karunakar >=20 > -----Original Message----- > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] > Sent: Monday, September 18, 2017 7:46 AM > To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting > Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol >=20 > Hi Karunakar, >=20 > According the UEFI Spec, the Ip4Config2DataTypeManualAddress, > Ip4Config2DataTypeGateway and Ip4Config2DataTypeDnsServer > configuration data are not allowed to set via SetData() if the policy is = DHCP. > So, the clear feature is only for the manual configuration. This is our d= esign > purpose and also the reason why the feature is not apply to the > Ip4Config2DataTypeInterfaceInfo/Ip4Config2DataTypePolicy. >=20 > Thanks, > Jiaxin >=20 >=20 > > -----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 > > > > Hello All, > > > > Could you please anyone provide comment on this? > > > > Thank you, > > karunakar > > > > 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 > > > > 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 DataSi= ze is 0 and > > Data is NULL > > > > Status =3D Ip4Cfg2->SetData ( > > > > Ip4Cfg2, > > > > Ip4Config2DataTypeManualAddress, > > > > 0, > > > > 0 > > > > ); > > > > 3. But SetData returns with Write Protected Error Status /= / Status =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 else 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 DataSi= ze is 0 and > > Data is NULL > > > > Status =3D Ip4Cfg2->SetData ( > > > > Ip4Cfg2, > > > > Ip4Config2DataTypeManualAddress, > > > > 0, > > > > 0 > > > > ); > > > > 3. But SetData returns with Write Protected Error Status /= / Status =3D > > Write Protected > > > > 4. Faced the same error for setting Gateway &DnsServer > > > > Guess the error is happening from > > > > > > Thanks, > > karunakar > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel