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 5644121D046A5 for ; Tue, 19 Sep 2017 03:49:37 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC18F8204A; Tue, 19 Sep 2017 16:25:20 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BF1A382047; Tue, 19 Sep 2017 16:25:20 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Tue, 19 Sep 2017 16:25:20 +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; Tue, 19 Sep 2017 16:22:37 +0530 From: Karunakar P To: "'Wu, Jiaxin'" , "'edk2-devel@lists.01.org'" , "Ye, Ting" Thread-Topic: [edk2] Failed to clear configuration in Ip4Config2 Protocol Thread-Index: AQHTMCQmiCYvM1TUUU+NimAGukLtxKK6Bcvw//+zAQCAAfEFoA== Date: Tue, 19 Sep 2017 10:52:37 +0000 Message-ID: References: <895558F6EA4E3B41AC93A00D163B727416332C12@SHSMSX103.ccr.corp.intel.com> <895558F6EA4E3B41AC93A00D163B727416334E00@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <895558F6EA4E3B41AC93A00D163B727416334E00@SHSMSX103.ccr.corp.intel.com> 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-ERS: 10.0.0.7-127.5.254.15 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-23338.004 X-TM-AS-Result: No--29.237-5.0-31-10 X-imss-scan-details: No--29.237-5.0-31-10;No--29.237-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23338.004 X-TMASE-Result: 10--29.236900-10.000000 X-TMASE-MatchedRID: gzVbiXtWD9uqMZyz/RcGLuYAh37ZsBDC1kqyrcMalqX12U3m7ubvOmWt 4KlMT7aqYYUCaILJgCQ0FJKIRy8cWvs6AFvEdeZff01qcJQDhV4gzzoB6jqxglmc19Us2m2yzCa NCWgYjTydScslQJFmUTitnJ6w9aHcSVk5Oq20YbkFJG8ZmXyKdRmyTBaqiJvcq8z7POX8FJMHtI 5USGdI7ng5yfujDEG8iWainCVPPhiolmxErYNsHRes/RxhysDbt3aeg7g/usDMVqPzYKoX2XaSg 7fiy0fIg9qGGwiBgQZC2gsnXU2H2MME2BsoiKJMtLDu9qtqKeHSde/CNbaZJTzzULHH1XTjKl/R UlmGXE/eZqUHURVtQwHRRfwQ8Ubaj34dbNS5CTAwiJTf3kjwfV3KZkFy4YZE80VZ5SgxdNCcbWJ zmJ8DaKO+wb+BLPU7BrS6mDWZI9R/joQtSekNLJ4CIKY/Hg3ANmydw0+ZpaSm8jxRk5/juCy/vN k6IVpvp5scLHMFXhNJV3La6JhRYvoLR4+zsDTtAqYBE3k9Mpw= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-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: Tue, 19 Sep 2017 10:49:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Jiaxin, Many thanks for your help. After the successful HTTP boot DNS parsing, I can see the DNS Node, But it = have bit difference form UEFI2.7 spec //....../MAC(D8CB8ADEBBAA,0x0)/IPv4(0.0.0.0)/Dns(192.168.184.1)/Uri(https:/= /www.cloudboot.com:443/EFI/Shell.efi) //....../MAC(D8CB8ADEBBAA,0x0)/IPv6(2001:0DB8:0000:0001:0000:0000:0000:0001= )/Dns(2001:0DB8:0000:0001:0000:0000:0000:0001)/Uri(https://www.cloudbootip6= .com:443/EFI/Shell.efi) I can see Only DNS Server IP address in DNS Node i.e. Dns(192.168.184.1) But UEFI2.7 spec says(24.7.3.1 Device Path, page 1329) like below Dns(192.168.22.100, 192.168.22.101) for IPv4 Dns(2016::100, 2016::101 for IPv6, DNS node have DNS Server IP and some = other IP address too. Why I'm getting this difference, is there anything wrong or I'm I missing a= nything? =20 Thanks, Karunakar -----Original Message----- From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]=20 Sent: Monday, September 18, 2017 10:28 AM To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol 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=20 > 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=20 > 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=20 > Protocol >=20 > Hi Karunakar, >=20 > According the UEFI Spec, the Ip4Config2DataTypeManualAddress,=20 > Ip4Config2DataTypeGateway and Ip4Config2DataTypeDnsServer=20 > 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=20 > our design purpose and also the reason why the feature is not apply to=20 > the Ip4Config2DataTypeInterfaceInfo/Ip4Config2DataTypePolicy. >=20 > Thanks, > Jiaxin >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf=20 > > 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=20 > > 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=20 > > Protocol > > > > Hello All, > > > > I was trying to verify the feature "Allow SetData to clear=20 > > configuration in Ip4Config2/Ip6Config Protocol" , But SetData=20 > > 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=20 > > 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=20 > > configuration in Ip4Config2/Ip6Config Protocol" , But SetData=20 > > 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