From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 59A6E20945BF6 for ; Tue, 19 Sep 2017 19:08:51 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2017 19:11:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,420,1500966000"; d="scan'208";a="151219125" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 19 Sep 2017 19:11:56 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 19 Sep 2017 19:11:55 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 19 Sep 2017 19:11:55 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Wed, 20 Sep 2017 10:11:53 +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//9yr3CAAoyrgP/+e97g Date: Wed, 20 Sep 2017 02:11:52 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B7274163358F9@SHSMSX103.ccr.corp.intel.com> References: <895558F6EA4E3B41AC93A00D163B727416332C12@SHSMSX103.ccr.corp.intel.com> <895558F6EA4E3B41AC93A00D163B727416334E00@SHSMSX103.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTZjZjg4NzctZTM0NC00ODU2LTk5YjktNDRmMTliNmI5YmVjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNi41LjkuMyIsIlRydXN0ZWRMYWJlbEhhc2giOiIwbzBIdk4rN3BsbktNNWNobGJWamlPcXFIaVJTaWxlU1wvZGNFYkNKd1phRT0ifQ== x-ctpclassification: CTP_PUBLIC 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: Wed, 20 Sep 2017 02:08:51 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Karunakar, DNS Device Path is used to list all the instances of the DNS server address= . If there are multiple DNS server address reported from DHCP server, it wi= ll like the Spec example: Dns(192.168.22.100, 192.168.22.101). Here, accord= ing your DNS Node, there is only one DNS server returned from DHCP. Thanks, Jiaxin > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Karunakar P > Sent: Tuesday, September 19, 2017 6:53 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 > Many thanks for your help. >=20 > After the successful HTTP boot DNS parsing, I can see the DNS Node, But i= t > 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.clou > dbootip6.com:443/EFI/Shell.efi) >=20 > 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 som= e > other IP address too. >=20 > Why I'm getting this difference, is there anything wrong or I'm I missing > anything? >=20 > Thanks, > Karunakar >=20 > -----Original Message----- > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] > 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 >=20 > Hi karunakar, >=20 > You can verify the DNS device path with HTTP boot feature. After the > successful HTTP boot DNS parsing, the device path should be like: > //....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...). >=20 > That is recommend way for the verification. >=20 > Besides, you can also draft the App to call the DevPathFromTextDns and > DevPathToTextDns libraries for the more verification. >=20 > Thanks, > Jiaxin >=20 >=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 > > > > Hi Jiaxin, > > > > Thank you very much for your info, Yes it works fine for manual > configuration. > > > > And also could you please provide steps to verify "Add DNS device path > > node" feature. > > > > Thanks, > > karunakar > > > > -----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 > > > > Hi Karunakar, > > > > According the UEFI Spec, the Ip4Config2DataTypeManualAddress, > > Ip4Config2DataTypeGateway and Ip4Config2DataTypeDnsServer > > configuration data are not allowed to set via SetData() if the policy i= s DHCP. > > So, the clear feature is only for the manual configuration. This is > > our design purpose and also the reason why the feature is not apply to > > the Ip4Config2DataTypeInterfaceInfo/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 > > > > > > 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 Data= Size 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 Data= Size 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 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel